Skip to content

Chore/jr/concept catalog e2e #2

Chore/jr/concept catalog e2e

Chore/jr/concept catalog e2e #2

Workflow file for this run

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/') != '' }}