Skip to content

Commit 5ebcfd2

Browse files
committed
chore: add GitHub Actions CI workflow and recommended VS Code extensions
1 parent 1ca2713 commit 5ebcfd2

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
name: Lint & Format
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .nvmrc
22+
cache: npm
23+
- run: npm ci
24+
- run: npm run format:check
25+
- run: npm run lint
26+
27+
typecheck:
28+
name: Typecheck
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version-file: .nvmrc
35+
cache: npm
36+
- run: npm ci
37+
- run: npx tsc --noEmit
38+
39+
test:
40+
name: Test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: actions/setup-node@v4
45+
with:
46+
node-version-file: .nvmrc
47+
cache: npm
48+
- run: npm ci
49+
- run: npm test
50+
51+
build:
52+
name: Build
53+
runs-on: ubuntu-latest
54+
needs: [lint, typecheck, test]
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: actions/setup-node@v4
58+
with:
59+
node-version-file: .nvmrc
60+
cache: npm
61+
- run: npm ci
62+
- run: npm run build:only

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"oxc.oxc-vscode"
4+
],
5+
}

0 commit comments

Comments
 (0)