Fix Login code #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: End-to-end browser tests | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CI: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
environment: | |
name: ${{ matrix.environment-name }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
matrix: | |
# NSS does not support static client registration, which we rely on for testing. | |
environment-name: ["ESS PodSpaces"] | |
experimental: [false] | |
include: | |
- environment-name: "ESS Dev-Next" | |
experimental: true | |
steps: | |
- uses: actions/checkout@v3 | |
# The Node version does not influence how well our tests run in | |
# the browser so we only need to test in one. | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
cache: npm | |
- run: npm ci | |
if: github.actor != 'dependabot[bot]' | |
- run: npm run bootstrap -- --ci | |
- run: npm run build | |
if: github.actor != 'dependabot[bot]' | |
- name: Install e2e tests dependencies | |
run: npx playwright install --with-deps | |
if: github.actor != 'dependabot[bot]' | |
- name: Prepare browser-based end-to-end tests | |
run: npm ci | |
if: github.actor != 'dependabot[bot]' | |
working-directory: e2e/browser/test-app | |
- name: Run browser-based end-to-end tests | |
# Running end-to-end tests requires accessing secrets which aren't available to dependabot. | |
# https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/ | |
# We want jobs in this workflow to be gating PRs, so the whole matrix must | |
# run even for dependabot so that the matrixed jobs are skipped, instead | |
# of the whole pipeline. | |
if: github.actor != 'dependabot[bot]' | |
run: npm run test:e2e:browser | |
env: | |
E2E_DEMO_CLIENT_APP_URL: http://localhost:3001 | |
E2E_TEST_USER: ${{ secrets.E2E_TEST_USER }} | |
E2E_TEST_PASSWORD: ${{ secrets.E2E_TEST_PASSWORD }} | |
E2E_TEST_IDP: ${{ secrets.E2E_TEST_IDP }} | |
E2E_TEST_OWNER_CLIENT_ID: ${{ secrets.E2E_TEST_OWNER_CLIENT_ID }} | |
E2E_TEST_OWNER_CLIENT_SECRET: ${{ secrets.E2E_TEST_OWNER_CLIENT_SECRET }} | |
E2E_TEST_ENVIRONMENT: ${{ matrix.environment-name }} | |
- name: Archive browser-based end-to-end test failure results, if any | |
uses: actions/[email protected] | |
continue-on-error: true | |
if: failure() | |
with: | |
name: e2e-browser-failures | |
path: test-results |