Skip to content

Commit e1d4c4e

Browse files
committed
Add GitHub Actions CI workflow
1 parent 8cd6ff5 commit e1d4c4e

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: ci-${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
validate:
19+
name: Validate
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
env:
23+
HUSKY: 0
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v2
30+
with:
31+
bun-version: 1.3.10
32+
33+
- name: Install dependencies
34+
run: bun install --frozen-lockfile
35+
36+
- name: Check formatting
37+
run: bun run format:check
38+
39+
- name: Lint
40+
run: bun run lint
41+
42+
- name: Run tests
43+
run: bun run test
44+
45+
- name: Build
46+
run: bun run build

0 commit comments

Comments
 (0)