-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.01 KB
/
Copy pathci.yml
File metadata and controls
40 lines (36 loc) · 1.01 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
name: CI
on:
push:
branches: [master]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
# Electron's postinstall downloads a ~100MB binary that nothing in this
# job needs; the desktop job installs it properly.
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build:client
- run: bun run --bun biome check .
- run: bun test
- name: Export the static site
run: bun apps/web/src/export.js
browser:
runs-on: ubuntu-latest
needs: check
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- run: bun install --frozen-lockfile --ignore-scripts
- run: bun run build:client
- name: Every test must mount in a real browser
run: bun test/browser-smoke.js