-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 943 Bytes
/
test.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
name: Cypress Tests with Dependency and Artifact Caching
on: push
jobs:
install:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress install
uses: cypress-io/github-action@v6
with:
# Disable running of tests within install job
runTests: false
build: npm run build
- name: Save out folder
uses: actions/upload-artifact@v3
with:
name: out
if-no-files-found: error
path: out
cypress-run:
runs-on: ubuntu-22.04
needs: install
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download the out folder
uses: actions/download-artifact@v3
with:
name: out
path: out
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run dev
browser: chrome