Cypress Test Production #472
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 Test Production | |
# This workflow runs the Cypress test suite on the production server | |
# https://coronawarn.app | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run daily at 9:00 UTC | |
- cron: "0 9 * * *" | |
jobs: | |
Cypress-Test-Production: | |
runs-on: ubuntu-latest | |
env: | |
NO_COLOR: true | |
TERM: xterm | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js 18 environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/hydrogen' | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Cypress run | |
run: npx cypress run -s 'cypress/e2e/*.js' -c baseUrl=https://www.coronawarn.app --e2e --headless --browser chrome | |
env: | |
# See issue https://github.com/cypress-io/cypress/issues/25357 | |
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu' |