Skip to content

Commit 7b71b1c

Browse files
add actions
1 parent 9289d16 commit 7b71b1c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Diff for: .github/workflows/cypress.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Cypress Tests with Dependency and Artifact Caching
2+
3+
on: push
4+
5+
jobs:
6+
install:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
12+
- name: Cypress install
13+
uses: cypress-io/github-action@v6
14+
with:
15+
# Disable running of tests within install job
16+
runTests: false
17+
build: npm run build
18+
19+
- name: Save build folder
20+
uses: actions/upload-artifact@v4
21+
with:
22+
name: build
23+
if-no-files-found: error
24+
path: build
25+
26+
cypress-run:
27+
runs-on: ubuntu-22.04
28+
needs: install
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Download the build folder
34+
uses: actions/download-artifact@v4
35+
with:
36+
name: build
37+
path: build
38+
39+
- name: Cypress run
40+
uses: cypress-io/github-action@v6
41+
with:
42+
start: npm start
43+
browser: chrome

0 commit comments

Comments
 (0)