refactor: deduplicate test config, backwards shim #180
Workflow file for this run
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: Cypress Tests | |
on: push | |
jobs: | |
cypress-run: | |
timeout-minutes: 30 | |
runs-on: ubuntu-22.04 | |
# strategy: | |
# fail-fast: false # https://github.com/cypress-io/github-action/issues/48 | |
# matrix: | |
# containers: [1, 2, 3] # Uses parallel instances | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Frontend Dependencies | |
working-directory: frontend | |
run: npm ci | |
- name: Build Frontend | |
working-directory: frontend | |
run: npm run build:test | |
- name: Cypress Run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: frontend | |
build: npx cypress info | |
start: npm run start:build | |
wait-on: 'http://localhost:3000' | |
wait-on-timeout: 300 | |
record: false | |
# parallel: true # Runs test in parallel using settings above | |
env: | |
AWS_COGNITO_USERNAME: ${{ secrets.AWS_COGNITO_USERNAME }} | |
AWS_COGNITO_PASSWORD: ${{ secrets.AWS_COGNITO_PASSWORD }} | |
- name: Save Cypress Screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: screenshots | |
path: frontend/cypress/screenshots |