-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (52 loc) · 1.48 KB
/
ci.yml
File metadata and controls
68 lines (52 loc) · 1.48 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
67
68
name: CI
on:
push:
branches: ["**"]
pull_request:
branches: [master]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.11"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun run lint
- name: Typecheck
run: bun run typecheck
- name: Build
run: bun run build
- name: Build wmux-client
working-directory: packages/wmux-client
run: bun run build
- name: Run echoform tests
working-directory: packages/echoform
run: bun run test
- name: Install Playwright browsers
run: bunx playwright install --with-deps chromium
- name: Run Playwright tests (todo-app)
working-directory: demo/todo-app
run: bun run test
- name: Run Playwright tests (file-editor)
working-directory: demo/file-editor
run: bun run test
- name: Run Playwright tests (dev-server)
working-directory: demo/dev-server
run: bun run test
- name: Upload test artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-results
path: |
demo/*/test-results/
demo/*/playwright-report/
retention-days: 7