-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.19 KB
/
reusable-e2e-test-job.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
########################################################
# Reusable e2e-test workflow #
########################################################
name: e2e-test
on:
workflow_call:
jobs:
e2e:
name: e2e-job
runs-on: ubuntu-latest
environment: staging
container: mcr.microsoft.com/playwright:focal
env:
USER_ID: ${{ secrets.TEST_TRAINEE_ID }}
URL: ${{ secrets.FRONTEND_URL }}
BASICAUTHENTICATION_USERNAME: ${{ secrets.BASICAUTHENTICATION_USERNAME }}
BASICAUTHENTICATION_PASSWORD: ${{ secrets.BASICAUTHENTICATION_PASSWORD }}
ENVIRONMENT_NAME: staging
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
node_modules
packages/*/node_modules
.yarn
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}-in-${{ github.ref_name }}
- name: Download built dist and lib
uses: actions/download-artifact@v4
with:
name: dist-and-lib
path: packages
- run: |
cd packages/e2e
unset NODE_OPTIONS
yarn
npx playwright install
npx playwright test