File tree 1 file changed +7
-47
lines changed
1 file changed +7
-47
lines changed Original file line number Diff line number Diff line change 1
1
name : Lint and type checking
2
-
3
2
on :
4
3
pull_request :
5
4
branches :
6
5
- main
7
6
8
7
jobs :
9
- lint-and-type-checking-install :
8
+ lint-and-type-checking :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- name : Checkout
@@ -17,56 +16,17 @@ jobs:
17
16
- name : Setup pnpm
18
17
uses : pnpm/action-setup@v4
19
18
20
- - name : Cache pnpm store
21
- id : cache
22
- uses : actions/cache@v3
19
+ - name : Setup Node.js
20
+ uses : actions/setup-node@v4
23
21
with :
24
- path : ~/.pnpm-store
25
- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
26
- restore-keys : |
27
- ${{ runner.os }}-pnpm-
22
+ node-version : ' 22'
23
+ cache : pnpm
28
24
29
25
- name : Install dependencies
30
26
run : pnpm install
31
27
32
- lint-check :
33
- needs : lint-and-type-checking-install
34
- runs-on : ubuntu-latest
35
- steps :
36
- - name : Checkout
37
- uses : actions/checkout@v4
38
- with :
39
- fetch-depth : 0
40
-
41
- - name : Cache pnpm store
42
- id : cache
43
- uses : actions/cache@v3
44
- with :
45
- path : ~/.pnpm-store
46
- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
47
- restore-keys : |
48
- ${{ runner.os }}-pnpm-
49
-
50
28
- name : Run lint check
51
- run : pnpm run lint:eslint
52
-
53
- type-check :
54
- needs : lint-and-type-checking-install
55
- runs-on : ubuntu-latest
56
- steps :
57
- - name : Checkout
58
- uses : actions/checkout@v4
59
- with :
60
- fetch-depth : 0
61
-
62
- - name : Cache pnpm store
63
- id : cache
64
- uses : actions/cache@v3
65
- with :
66
- path : ~/.pnpm-store
67
- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
68
- restore-keys : |
69
- ${{ runner.os }}-pnpm-
29
+ run : npm run lint:eslint
70
30
71
31
- name : Run type check
72
- run : pnpm run type:check
32
+ run : npm run type:check
You can’t perform that action at this time.
0 commit comments