forked from cypress-io/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.43 KB
/
example-node-versions.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
54
55
56
57
58
59
name: example-node-versions
on:
push:
branches:
- 'master'
pull_request:
jobs:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v9 and lower ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
cypress-run:
runs-on: ubuntu-20.04
# let's make sure Cypress works on several versions of Node
strategy:
matrix:
node: [12, 14, 16]
name: E2E on Node v${{ matrix.node }}
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: node -v
- run: npm -v
- name: Checkout
uses: actions/checkout@v2
# Hmm, should we rebuild the "dist" before using the action?
- uses: ./
with:
working-directory: examples/v9/node-versions
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
cypress-run-v10:
runs-on: ubuntu-20.04
# let's make sure Cypress works on several versions of Node
strategy:
matrix:
node: [12, 14, 16]
name: E2E on Node v${{ matrix.node }}
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: node -v
- run: npm -v
- name: Checkout
uses: actions/checkout@v2
# Hmm, should we rebuild the "dist" before using the action?
- uses: ./
with:
working-directory: examples/v10/node-versions