Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Commit 2ee2ec4

Browse files
committed
ci: add comprehensive CI workflow with build, typecheck, lint, and test jobs
Introduce a new GitHub Actions workflow at .github/workflows/ci.yml that runs on push and pull requests to main. It includes four jobs: - build: checks out code, runs setup action, and builds the project - typecheck: runs type checking - lint: runs linting - test: runs tests Each job uses the reusable setup action for environment preparation and runs on ubuntu-latest with a 10-minute timeout. This standardizes CI and ensures code quality checks on every push and PR.
1 parent c6448e3 commit 2ee2ec4

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
defaults:
4+
run:
5+
shell: bash
6+
7+
permissions: {}
8+
9+
on:
10+
pull_request:
11+
push:
12+
branches:
13+
- main
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
name: Build
22+
timeout-minutes: 10
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
steps:
27+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+
with:
29+
persist-credentials: false
30+
- uses: ./.github/actions/setup
31+
- run: bun run build
32+
33+
typecheck:
34+
name: Typecheck
35+
timeout-minutes: 10
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
steps:
40+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
41+
with:
42+
persist-credentials: false
43+
- uses: ./.github/actions/setup
44+
- run: bun run typecheck
45+
46+
lint:
47+
name: Lint
48+
timeout-minutes: 10
49+
runs-on: ubuntu-latest
50+
permissions:
51+
contents: read
52+
steps:
53+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
54+
with:
55+
persist-credentials: false
56+
- uses: ./.github/actions/setup
57+
- run: bun run lint
58+
59+
test:
60+
name: Test
61+
timeout-minutes: 10
62+
runs-on: ubuntu-latest
63+
permissions:
64+
contents: read
65+
steps:
66+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
67+
with:
68+
persist-credentials: false
69+
- uses: ./.github/actions/setup
70+
- run: bun run test

0 commit comments

Comments
 (0)