Skip to content

Commit ab8c6bc

Browse files
committed
ci: replace workflow with Prettier-formatted version
1 parent 988bf48 commit ab8c6bc

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
name: CI
2+
23
on:
34
push:
45
branches: [main]
56
pull_request:
67
branches: [main]
8+
79
concurrency:
8-
group: ci-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.ref }}
911
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
1016
jobs:
11-
ci:
17+
lint-format:
1218
runs-on: ubuntu-latest
1319
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
1625
with:
1726
node-version: '20'
1827
cache: 'npm'
19-
- name: Install
28+
29+
- name: Install deps
2030
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

0 commit comments

Comments
 (0)