File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
+
2
3
on :
3
4
push :
4
5
branches : [main]
5
6
pull_request :
6
7
branches : [main]
8
+
7
9
concurrency :
8
- group : ci -${{ github.ref }}
10
+ group : ${{ github.workflow }} -${{ github.ref }}
9
11
cancel-in-progress : true
12
+
13
+ permissions :
14
+ contents : read
15
+
10
16
jobs :
11
- ci :
17
+ lint-format :
12
18
runs-on : ubuntu-latest
13
19
steps :
14
- - uses : actions/checkout@v4
15
- - uses : actions/setup-node@v4
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v4
16
25
with :
17
26
node-version : ' 20'
18
27
cache : ' npm'
19
- - name : Install
28
+
29
+ - name : Install deps
20
30
run : npm ci
21
- - name : Format (Prettier)
22
- run : npm run format:check || npx prettier --check .
31
+
32
+ - name : Prettier (check)
33
+ run : npm run format:check
34
+
35
+ - name : ESLint
36
+ run : npm run lint
You can’t perform that action at this time.
0 commit comments