Skip to content

Commit e89f28e

Browse files
committed
build: fix type errors and add CI enforcement
1 parent 14a056a commit e89f28e

14 files changed

Lines changed: 955 additions & 856 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,42 @@ jobs:
3030
- name: Setup Node.js
3131
uses: actions/setup-node@v4
3232
with:
33-
node-version: 20
33+
node-version: 24
3434
cache: npm
3535
cache-dependency-path: ./website/package-lock.json
3636

37+
- name: Cache Puppeteer Chromium
38+
uses: actions/cache@v4
39+
with:
40+
# Keyed on the lockfile so a puppeteer version bump invalidates it.
41+
path: ~/.cache/puppeteer
42+
key: puppeteer-${{ runner.os }}-${{ hashFiles('website/package-lock.json') }}
43+
3744
- name: Install dependencies
3845
run: npm ci
3946

47+
- name: Run tests
48+
run: npm test
49+
50+
- name: Run typecheck
51+
run: npm run typecheck
52+
4053
- name: Build website
4154
run: npm run build
4255

56+
- name: Run browser contract tests against the built site
57+
run: npm run test:browser-contracts
58+
env:
59+
BROWSER_TEST_BUILD_DIR: ./build
60+
61+
- name: Upload browser failure traces
62+
if: failure()
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: browser-contracts-traces
66+
path: website/browser-contracts-traces
67+
if-no-files-found: ignore
68+
4369
- name: Upload artifact
4470
uses: actions/upload-pages-artifact@v3
4571
with:

‎.github/workflows/tauri-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- uses: actions/setup-node@v4
3636
with:
37-
node-version: 20
37+
node-version: 24
3838
cache: npm
3939
cache-dependency-path: website/package-lock.json
4040

0 commit comments

Comments
 (0)