-
-
Notifications
You must be signed in to change notification settings - Fork 57
66 lines (52 loc) · 1.51 KB
/
Copy pathbuild-bun.yml
File metadata and controls
66 lines (52 loc) · 1.51 KB
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
61
62
63
64
65
66
name: Bun CI
on:
push:
branches: [main, dev]
paths-ignore:
- 'docs/**' # any file under docs/
- 'screenshots/**' # any file under screenshots/
- '**/*.md' # any .md anywhere
pull_request:
branches: [main, dev]
paths-ignore:
- 'docs/**' # any file under docs/
- 'screenshots/**' # any file under screenshots/
- '**/*.md' # any .md anywhere
workflow_dispatch:
# Cancel previous runs when a new one is triggered (same branch/PR)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Verify Bun version
run: bun --version
- name: Install matterbridge dependencies
run: bun install
- name: Build matterbridge
run: bun run build
- name: Typecheck matterbridge
run: bun run typecheck
- name: Install frontend dependencies
run: bun install
working-directory: apps/frontend
- name: Build frontend
run: bun run build
working-directory: apps/frontend
- name: Typecheck frontend
run: bun run typecheck
working-directory: apps/frontend
- name: Test matterbridge
run: bun test