-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (45 loc) · 1.2 KB
/
e2e_tests.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
name: e2e
on:
workflow_run:
workflows: ["Deploy to Demo"]
types:
- completed
permissions:
id-token: write
contents: read
jobs:
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.ACTION_E2E_TESTS_ROLE }}
- name: Retrieve test user email and password
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
e2e/test1
parse-json-secrets: true
- name: Install dependencies
run: npm ci
working-directory: e2e
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: e2e
- name: Run Playwright tests
run: npm run e2e:test
working-directory: e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: e2e/test-results/
retention-days: 30