File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
9
9
jobs :
10
- unit :
11
- runs-on : ubuntu-latest
10
+ lint-test :
12
11
name : 🚀 Lint and test
12
+ runs-on : ubuntu-latest
13
13
timeout-minutes : 5
14
+ strategy :
15
+ matrix :
16
+ node : [ 18, 20 ]
17
+
14
18
steps :
15
19
- name : 👍 Checkout
16
- uses : actions/checkout@v2
20
+ uses : actions/checkout@v4
17
21
18
- - name : 📦 Cache node modules
19
- uses : actions/cache@v2
20
- env :
21
- cache-name : cache-node-modules
22
+ - name : 🐢 Setup node.js
23
+ uses : actions/setup-node@v4
22
24
with :
23
- path : ~/.npm
24
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25
- restore-keys : |
26
- ${{ runner.os }}-build-${{ env.cache-name }}-
27
- ${{ runner.os }}-build-
28
- ${{ runner.os }}-
25
+ node-version : ${{ matrix.node }}
26
+ cache : ' npm'
29
27
30
28
- name : 📥 Install dependencies
31
29
run : npm install
35
33
36
34
- name : ✅ Run tests
37
35
run : npm run test
36
+
You can’t perform that action at this time.
0 commit comments