10
10
- packages/frontend/**
11
11
- packages/sw/**
12
12
- packages/misskey-js/**
13
- - packages/shared/.eslintrc.js
13
+ - packages/shared/eslint.config.js
14
+ - .github/workflows/lint.yml
14
15
pull_request :
15
16
paths :
16
17
- packages/backend/**
17
18
- packages/frontend/**
18
19
- packages/sw/**
19
20
- packages/misskey-js/**
20
- - packages/shared/.eslintrc .js
21
-
21
+ - packages/shared/eslint.config .js
22
+ - .github/workflows/lint.yml
22
23
jobs :
23
24
pnpm_install :
24
25
runs-on : ubuntu-latest
28
29
fetch-depth : 0
29
30
submodules : true
30
31
- uses : pnpm/action-setup@v4
31
- - uses : actions/setup-node@v4.0.2
32
+ - uses : actions/setup-node@v4.0.3
32
33
with :
33
34
node-version-file : ' .node-version'
34
35
cache : ' pnpm'
39
40
needs : [pnpm_install]
40
41
runs-on : ubuntu-latest
41
42
continue-on-error : true
43
+ env :
44
+ eslint-cache-version : v1
42
45
strategy :
43
46
matrix :
44
47
workspace :
@@ -52,13 +55,20 @@ jobs:
52
55
fetch-depth : 0
53
56
submodules : true
54
57
- uses : pnpm/action-setup@v4
55
- - uses : actions/setup-node@v4.0.2
58
+ - uses : actions/setup-node@v4.0.3
56
59
with :
57
60
node-version-file : ' .node-version'
58
61
cache : ' pnpm'
59
62
- run : corepack enable
60
63
- run : pnpm i --frozen-lockfile
61
- - run : pnpm --filter ${{ matrix.workspace }} run eslint
64
+ - name : Restore eslint cache
65
+ uses : actions/cache@v4.0.2
66
+ with :
67
+ path : node_modules/.cache/eslint
68
+ key : eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-${{ github.ref_name }}-${{ github.sha }}
69
+ restore-keys : |
70
+ eslint-${{ env.eslint-cache-version }}-${{ hashFiles('/pnpm-lock.yaml') }}-
71
+ - run : pnpm --filter ${{ matrix.workspace }} run eslint --cache --cache-location node_modules/.cache/eslint --cache-strategy content
62
72
63
73
typecheck :
64
74
needs : [pnpm_install]
75
85
fetch-depth : 0
76
86
submodules : true
77
87
- uses : pnpm/action-setup@v4
78
- - uses : actions/setup-node@v4.0.2
88
+ - uses : actions/setup-node@v4.0.3
79
89
with :
80
90
node-version-file : ' .node-version'
81
91
cache : ' pnpm'
0 commit comments