Skip to content

Commit 67fe8fc

Browse files
authored
Merge pull request #8 from 7vignesh/ci/github-actions
ci: add GitHub Actions workflow for typecheck, test, and build
2 parents 966fa36 + d3107a3 commit 67fe8fc

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
# Cancel in-progress runs for the same ref to save CI minutes
10+
concurrency:
11+
group: ci-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
verify:
16+
name: Typecheck, Test & Build
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Bun
25+
uses: oven-sh/setup-bun@v2
26+
with:
27+
bun-version: "1.3.0"
28+
29+
- name: Cache Turborepo
30+
uses: actions/cache@v4
31+
with:
32+
path: .turbo
33+
key: turbo-${{ runner.os }}-${{ github.sha }}
34+
restore-keys: |
35+
turbo-${{ runner.os }}-
36+
37+
- name: Install dependencies
38+
run: bun install --frozen-lockfile
39+
40+
- name: Typecheck
41+
run: bun run typecheck
42+
43+
- name: Test
44+
run: bun run test
45+
46+
- name: Build
47+
run: bun run build

0 commit comments

Comments
 (0)