Skip to content

Cypress Test Production #625

Cypress Test Production

Cypress Test Production #625

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'