Skip to content

Commit 19f7e03

Browse files
feat: add CI workflow for linting, testing, and building the project
1 parent 4a72a5d commit 19f7e03

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js 20
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
- name: Install dependencies
19+
run: npm ci
20+
21+
- name: Lint
22+
run: npm run lint
23+
24+
- name: Test
25+
run: npm run test
26+
27+
- name: Build
28+
run: npm run build
29+
30+
- name: Bundle
31+
run: npm run bundle

docs/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Use Context7 MCP for up to date documentation.
8383
Install `eslint`, `prettier`, `vitest`, `@types/node`, `@vercel/ncc`, `actionlint`.
8484
Verify: `npm run lint` and `npm run test` pass.
8585

86-
5. [ ] **CI for build/test**
86+
5. [x] **CI for build/test**
8787
Workflow `.github/workflows/ci.yml` runs lint, test, build, ncc.
8888
Verify: CI green on PR.
8989

0 commit comments

Comments
 (0)