File tree 1 file changed +28
-3
lines changed
1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change 5
5
branches : [master]
6
6
paths :
7
7
- " **.ts"
8
+ - " package.json"
9
+ - " pnpm-lock.yaml"
10
+ - " .eslintrc.json"
11
+ - " .eslintignore"
8
12
- " .github/workflows/eslint.yml"
9
13
pull_request :
10
14
branches : [master]
11
15
paths :
12
16
- " **.ts"
17
+ - " package.json"
18
+ - " pnpm-lock.yaml"
19
+ - " .eslintrc.json"
20
+ - " .eslintignore"
13
21
- " .github/workflows/eslint.yml"
14
22
15
23
jobs :
16
24
eslint :
17
25
runs-on : ubuntu-latest
18
26
steps :
19
27
- uses : actions/checkout@v2
28
+
29
+ - name : pnpm cache
30
+ uses : actions/cache@v2
31
+ env :
32
+ cache-name : cache-pnpm-store
33
+ with :
34
+ path : ~/.pnpm-store
35
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-${{ hashFiles('**/.package.json') }}
36
+ restore-keys : |
37
+ ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node }}-
38
+
20
39
- name : Setup Node.js
21
- uses : actions/setup-node@v1
40
+ uses : actions/setup-node@v2
22
41
with :
23
42
node-version : 16
24
- - run : npm install
25
- - run : npm run eslint
43
+
44
+ - name : Setup pnpm
45
+ uses : pnpm/action-setup@v2
46
+ with :
47
+ version : 6.2.1
48
+ run_install : true
49
+
50
+ - run : pnpm run eslint
You can’t perform that action at this time.
0 commit comments