ci: add GitHub Actions workflow for tests and type/build checks

Run pnpm install --frozen-lockfile, typecheck, test (vitest) and build on
push to main and all pull requests.
This commit is contained in:
Menghuan1918
2026-08-14 16:02:57 +08:00
parent df1ab1c65f
commit 20bb60dd03
+28
View File
@@ -0,0 +1,28 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm test
- name: Build
run: pnpm build