-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (53 loc) · 1.23 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Check
on: [push, pull_request]
jobs:
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run typecheck
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run lint
fmt:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run fmt
test-nodejs:
name: Test (Node.js)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shell: [latest, lts]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
shell: nodejs-${{ matrix.shell }}
- run: pnpm run test --coverage
test:
name: Test (Bun)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
shell: bun-latest
- run: bun test --coverage ./test/*
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: pnpm run docs-ci