-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 901 Bytes
/
tests.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
name: 🧪 Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 💻 Checkout current code ref
uses: actions/checkout@v4
- name: 🟢 Configure Bun on runner
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 📦 Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: 🔨 Run build
run: |
bun run build
bun run compile
- name: 🌷 Run format, lint & check with Biome
run: |
bun run format:ci
bun run lint:ci
bun run check:ci
- name: 🧪 Run tests
run: bun run test