File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
2
on :
4
3
push :
5
- branches : [main]
6
- tags : ['v*']
4
+ branches : [ main ]
7
5
pull_request :
8
- branches : [main]
9
-
6
+ branches : [ main ]
7
+ concurrency :
8
+ group : ci-${{ github.ref }}
9
+ cancel-in-progress : true
10
10
jobs :
11
- lint-format :
11
+ ci :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
- uses : actions/setup-node@v4
16
16
with :
17
17
node-version : ' 20'
18
18
cache : ' npm'
19
- - run : npm ci
20
- # Fail on ESLint warnings (optional: we recommend it for Sauberkeit)
21
- - run : npm run lint -- --max-warnings=0
22
- # Check formatting (no writes)
23
- - run : npm run format:check
19
+ - name : Install
20
+ run : npm ci
21
+ - name : Format (Prettier)
22
+ run : npm run format:check || npx prettier --check .
You can’t perform that action at this time.
0 commit comments