-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 2.02 KB
/
e2e.yaml
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
name: Deploy to staging
on:
pull_request:
types: [ready_for_review, opened, reopened, synchronize]
branches:
- main
jobs:
test:
name: Test and build
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
- run: yarn install --frozen-lockfile
- name: Caching Nx
uses: actions/cache@v4
with:
path: node_modules/.cache
key: cache-nx-${{ hashFiles('yarn.lock') }}
- run: yarn playwright install
- run: yarn run affected:e2e --configuration=ci --parallel=1 --verbose
env:
E2E_AUTH_ADMIN_ID: ${{ secrets.E2E_AUTH_ADMIN_ID }}
E2E_AUTH_READ_ID: ${{ secrets.E2E_AUTH_READ_ID }}
E2E_AUTH_WRITE_ID: ${{ secrets.E2E_AUTH_WRITE_ID }}
E2E_CATALOG_ID: ${{ secrets.E2E_CATALOG_ID }}
E2E_KEYCLOAK_ID_SERVICE_CATALOG_FRONTEND: ${{ secrets.E2E_KEYCLOAK_ID_SERVICE_CATALOG_FRONTEND }}
E2E_KEYCLOAK_ID_CONCEPT_CATALOG_FRONTEND: ${{ secrets.E2E_KEYCLOAK_ID_CONCEPT_CATALOG_FRONTEND }}
E2E_KEYCLOAK_ID_CATALOG_PORTAL_FRONTEND: ${{ secrets.E2E_KEYCLOAK_ID_CATALOG_PORTAL_FRONTEND }}
E2E_KEYCLOAK_SECRET_SERVICE_CATALOG_FRONTEND: ${{ secrets.E2E_KEYCLOAK_SECRET_SERVICE_CATALOG_FRONTEND }}
E2E_KEYCLOAK_SECRET_CONCEPT_CATALOG_FRONTEND: ${{ secrets.E2E_KEYCLOAK_SECRET_CONCEPT_CATALOG_FRONTEND }}
E2E_KEYCLOAK_SECRET_CATALOG_PORTAL_FRONTEND: ${{ secrets.E2E_KEYCLOAK_SECRET_CATALOG_PORTAL_FRONTEND }}
E2E_NEXTAUTH_SECRET: ${{ secrets.E2E_NEXTAUTH_SECRET }}
- name: Merge CTRF reports
run: npx ctrf merge reports
if: ${{ hashFiles('reports/') != '' }}
- name: Run CTRF annotations
run: npx github-actions-ctrf reports/ctrf-report.json
if: ${{ hashFiles('reports/') != '' }}