Skip to content

e2e

e2e #323

Workflow file for this run

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