-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (38 loc) · 1.21 KB
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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