Skip to content

Commit 0f43012

Browse files
author
Bubba
committed
ci: add GitHub Actions workflow (Node 22, tsc check, vitest) on push/PR to main/staging
1 parent 16191d5 commit 0f43012

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)