Skip to content

Commit 6b53e1a

Browse files
committed
ci: add github action workflow
1 parent c194f0b commit 6b53e1a

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: oven-sh/setup-bun@v2
17+
with:
18+
bun-version: latest
19+
20+
- name: Cache bun dependencies
21+
uses: actions/cache@v5
22+
with:
23+
path: ~/.bun/install/cache
24+
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-bun-
27+
28+
- name: Install dependencies
29+
run: bun ci
30+
31+
- name: Lint
32+
run: bun run lint
33+
34+
- name: Test
35+
run: bun test

0 commit comments

Comments
 (0)