-
Notifications
You must be signed in to change notification settings - Fork 76
43 lines (40 loc) · 1.13 KB
/
oidc-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: OIDC e2e tests
on:
push:
pull_request:
env:
DEBUG: pw:api
ODK_PLAYWRIGHT_BROWSERS: chromium,firefox,webkit
jobs:
oidc-e2e-test:
timeout-minutes: 6
# TODO should we use the same container as circle & central?
runs-on: ubuntu-latest
services:
# see: https://docs.github.com/en/[email protected]/actions/using-containerized-services/creating-postgresql-service-containers
postgres:
image: postgres:14.10
env:
POSTGRES_PASSWORD: odktest
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: 22.12.0
cache: 'npm'
- run: make test-oidc-e2e
- name: Archive playwright screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: Playwright Screenshots
path: test/e2e/oidc/playwright-results/**/*.png