-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (52 loc) · 1.83 KB
/
playwright.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
44
45
46
47
48
49
50
51
52
53
name: Playwright Tests
permissions: read-all
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run Playwright Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6
with:
node-version: lts/*
- name: Setup Minio
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ACCESS_KEY=sampleaccesskey" \
-e "MINIO_SECRET_KEY=samplesecretkey" \
-e "MINIO_DEFAULT_BUCKETS=meshdb-join-form-log" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data
export AWS_ACCESS_KEY_ID=sampleaccesskey
export AWS_SECRET_ACCESS_KEY=samplesecretkey
export AWS_EC2_METADATA_DISABLED=true
aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://meshdb-join-form-log
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
NEXT_PUBLIC_MESHDB_URL: https://127.0.0.1:8000 # Throwaway to make the mock work
MESHDB_URL: https://127.0.0.1:8000 # Throwaway to make the mock work
# We now check the JoinRecord stuff, so submit that too.
JOIN_RECORD_BUCKET_NAME: meshdb-join-form-log
JOIN_RECORD_PREFIX: dev-join-form-submissions
S3_ENDPOINT: http://127.0.0.1:9000
AWS_ACCESS_KEY_ID: sampleaccesskey
AWS_SECRET_ACCESS_KEY: samplesecretkey
AWS_REGION: us-east-1
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30