-
-
Notifications
You must be signed in to change notification settings - Fork 21
43 lines (34 loc) · 929 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
name: CI
on:
pull_request:
paths-ignore:
- "playground/**"
push:
branches:
- main
paths-ignore:
- "playground/**"
jobs:
build:
strategy:
matrix:
node: [20]
os: [ubuntu-latest, windows-latest, macos-latest, macos-latest-xlarge]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build the library
run: bun run build
- name: Run unit tests
run: bun test
- name: Type check fixtures
run: bun run test:fixtures-types
# Only trigger deploy if previous steps pass and branch is main
- name: Deploy docs
if: matrix.os == 'macos-latest' && github.ref == 'refs/heads/main'
env:
deploy_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: curl "$deploy_url"