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 77 pull_request :
88
99jobs :
10- unit :
11- runs-on : ubuntu-latest
10+ lint-test :
1211 name : 🚀 Lint and test
12+ runs-on : ubuntu-latest
1313 timeout-minutes : 5
14+ strategy :
15+ matrix :
16+ node : [ 18, 20 ]
17+
1418 steps :
1519 - name : 👍 Checkout
16- uses : actions/checkout@v2
20+ uses : actions/checkout@v4
1721
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
2224 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'
2927
3028 - name : 📥 Install dependencies
3129 run : npm install
3533
3634 - name : ✅ Run tests
3735 run : npm run test
36+
You can’t perform that action at this time.
0 commit comments