Skip to content

Commit eae275d

Browse files
committed
Update Github Actions
1 parent de29329 commit eae275d

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
11
name: Code quality
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
paths:
8-
- ".github/**"
9-
- "yarn.lock"
10-
- "**.js"
11-
pull_request:
12-
paths:
13-
- ".github/**"
14-
- "yarn.lock"
15-
- "**.js"
3+
on: push
164

175
jobs:
186
test_and_lint:
197
runs-on: ubuntu-latest
208
strategy:
219
matrix:
22-
node: [10, 12, 14, 16]
10+
node: [12, 14, 16, 18]
2311
steps:
24-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
2513

26-
- uses: actions/cache@master
14+
- uses: actions/cache@v3
2715
id: node_modules_cache
2816
with:
2917
path: node_modules
30-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18+
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
3119

3220
- run: yarn install --frozen-lockfile
3321
if: steps.node_modules_cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)