Skip to content

Commit 58e0521

Browse files
committed
chore(ci): add GitHub Actions workflow
- Add CI pipeline for format, lint, and typecheck - Add test execution workflow
1 parent fa0a583 commit 58e0521

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-check:
11+
name: Build Check (${{ matrix.os }})
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
runs-on: ${{ matrix.os }}
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Deno
22+
uses: denoland/setup-deno@v2
23+
with:
24+
deno-version: v2.5.4
25+
26+
- name: Format check
27+
run: deno fmt --check src/
28+
29+
- name: Lint
30+
run: deno lint src/
31+
32+
- name: Type check
33+
run: deno check src/index.ts
34+
35+
- name: Test
36+
run: deno test tests/ --allow-read

0 commit comments

Comments
 (0)