Repository navigation
54 lines (42 loc) · 1.4 KB
/
Copy pathweb.yml
File metadata and controls
54 lines (42 loc) · 1.4 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
name: Web CI
on:
push:
paths: ['web/**', 'sim/golden/gen_asm_fixtures.py', '.github/workflows/web.yml']
pull_request:
paths: ['web/**', 'sim/golden/gen_asm_fixtures.py', '.github/workflows/web.yml']
jobs:
web-ci:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: '11'
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Install dependencies
working-directory: web
run: pnpm install --frozen-lockfile
- name: Lint
working-directory: web
run: pnpm lint
- name: Type check
working-directory: web
run: pnpm typecheck
# Unit and integration tests: assembler vs GNU bytes, disassembler round trip, run model, and every
# preset on the committed WASM module (web/public/tiny_cpu.mjs, rebuilt by the WASM workflow).
- name: Unit and integration tests
working-directory: web
run: pnpm test
- name: Build
working-directory: web
run: pnpm build
- name: Install Chromium for the smoke tests
working-directory: web
run: pnpm exec playwright install --with-deps chromium
- name: Browser smoke tests (production build)
working-directory: web
run: pnpm test:e2e