Skip to content

Commit faf26e9

Browse files
authored
ci: add GitHub Actions workflow (#26)
* ci: add GitHub Actions workflow for PRs and pushes to main Runs typecheck, lint, tests, and build on Node 20 and 22. format:check is deliberately omitted until existing prettier failures are fixed. * ci: add format:check step The prettier failures are fixed in #25, which should merge first. * ci: test Node 18 to cover minimum supported engine package.json declares engines.node >=18, and all runtime and dev dependencies support 18, so CI should exercise it.
1 parent e313f9d commit faf26e9

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
ci:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
node-version: [18, 20, 22]
22+
name: Node ${{ matrix.node-version }}
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: npm
30+
31+
- run: npm ci
32+
33+
- run: npm run format:check
34+
35+
# typecheck + lint + test
36+
- run: npm run ci
37+
38+
- run: npm run build

0 commit comments

Comments
 (0)