Skip to content

Commit bce496e

Browse files
henrikjeclaude
andauthored
Add GitHub Actions CI workflow (#6)
Run `bun run check` (lint, typecheck, unit tests, integration tests) on every pull request. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 10516b9 commit bce496e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- uses: oven-sh/setup-bun@v2
15+
16+
- name: Install BATS
17+
run: |
18+
git clone --depth 1 https://github.com/bats-core/bats-core.git /tmp/bats-core
19+
sudo /tmp/bats-core/install.sh /usr/local
20+
21+
- name: Configure git
22+
run: |
23+
git config --global user.name "CI"
24+
git config --global user.email "ci@localhost"
25+
26+
- run: bun install
27+
28+
- run: bun run check

0 commit comments

Comments
 (0)