forked from stadiamaps/ferrostar
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 935 Bytes
/
Copy pathwasm-js.yml
File metadata and controls
44 lines (34 loc) · 935 Bytes
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
name: WASM (JS)
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-15
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-wasm-build
cancel-in-progress: true
steps:
- uses: actions/checkout@v6
- name: Install wasm-pack
run: cargo install wasm-pack
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm ci
working-directory: web
- run: npm run format:check
working-directory: web
- run: npm run lint
working-directory: web
- run: npm run build
working-directory: web
- run: npm run build:site
working-directory: web
- name: WASM unit tests
run: wasm-pack test --firefox --headless ferrostar --no-default-features --features wasm_js
working-directory: common