Skip to content

Commit a0a2618

Browse files
committed
ci: minimal Node pipeline (install + prettier check)
1 parent 9058b82 commit a0a2618

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
name: CI
2-
32
on:
43
push:
5-
branches: [main]
6-
tags: ['v*']
4+
branches: [ main ]
75
pull_request:
8-
branches: [main]
9-
6+
branches: [ main ]
7+
concurrency:
8+
group: ci-${{ github.ref }}
9+
cancel-in-progress: true
1010
jobs:
11-
lint-format:
11+
ci:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: '20'
1818
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 .

0 commit comments

Comments
 (0)