-
-
Notifications
You must be signed in to change notification settings - Fork 68
48 lines (40 loc) · 970 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
- master
- next
- 'v*'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
uses: fastify/workflows/.github/workflows/[email protected]
with:
license-check: true
lint: true
bun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
# The erraneous typod version `5.0.0-aplha` takes priority over .3 as 'p' > 'l'
run: |
bun i --ignore-scripts
bun i -D --ignore-scripts [email protected]
- name: Run types check
run: bun run typescript
- name: Run Jest tests
run: bun run typescript:jest
- name: Run Vitest tests
run: bun run typescript:vitest
- name: Run unit tests
run: bun run unit:bun