-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.35 KB
/
Copy pathmain.yml
File metadata and controls
46 lines (40 loc) · 1.35 KB
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
name: Run All Tests
on:
push:
branches: [master]
jobs:
Test-on-Chrome:
runs-on: ubuntu-latest
steps:
- name: Checkout GitCode
uses: actions/checkout@v4.2.2
- name: Install dependencies
uses: cypress-io/github-action@v6.7.8
with:
runTests: false
- name: Run Cypress Tests
uses: cypress-io/github-action@v6.7.8
with:
record: true
parallel: true
command: "npm run cy:chrome:headless"
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Upload Videos to Build Artifacts
uses: actions/upload-artifact@v3.1.2
if: always()
with:
name: cypress-videos-chrome
path: "${{ github.workspace }}/cypress/reports/videos/"
- name: Upload Screenshots to Build Artifacts
uses: actions/upload-artifact@v3.1.2
if: failure()
with:
name: cypress-screenshots-chrome
path: "${{ github.workspace }}/cypress/reports/screenshots/"
- name: Upload Mocha report to Build Artifacts
uses: actions/upload-artifact@v3.1.2
if: always()
with:
name: cypress-mocha-chrome
path: "${{ github.workspace }}/cypress/reports/html/"