-
Notifications
You must be signed in to change notification settings - Fork 12
53 lines (48 loc) · 1.85 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
45
46
47
48
49
50
51
52
53
name: Cypress End-to-End Tests
on:
pull_request:
branches: ["*"]
workflow_dispatch:
jobs:
cypress:
runs-on: ubuntu-latest
environment: Development
steps:
- name: 🛫 Checkout
uses: actions/checkout@v3
- name: 🏗 Set up NodeJS 18.14.0
uses: actions/setup-node@v3
with:
node-version: 18.14.0
cache: 'npm'
- name: 💻 Run Cypress
uses: cypress-io/github-action@v5
with:
start: npm run cy:test
wait-on: http://localhost:9200/
wait-on-timeout: 600
browser: chrome
headed: true
record: true
parallel: true
env:
# Set Firebase secrets directly from GitHub Secrets
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }}
VITE_FIREBASE_MEASUREMENTID: ${{ secrets.VITE_FIREBASE_MEASUREMENTID }}
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }}
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }}
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }}
VITE_FIREBASE_VAPID_KEY: ${{ secrets.VITE_FIREBASE_VAPID_KEY }}
VITE_CURRENT_NETWORK_NAME: ${{ secrets.VITE_CURRENT_NETWORK_NAME }}
# For recording and parallelization to work, set your CYPRESS_RECORD_KEY
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Pass GitHub token to detect new build vs re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Codecov
uses: codecov/codecov-action@v5
with:
flags: E2E
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}