mirror of https://github.com/boa-dev/boa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
on: |
|
pull_request: |
|
branches: |
|
- main |
|
push: |
|
branches: |
|
- main |
|
merge_group: |
|
types: [checks_requested] |
|
|
|
name: Webassembly demo |
|
|
|
jobs: |
|
check_style: |
|
name: Check webassembly demo style |
|
runs-on: ubuntu-latest |
|
timeout-minutes: 60 |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v4 |
|
- name: Check code formatting |
|
run: npx prettier --check . |
|
|
|
build: |
|
name: Build webassembly demo |
|
runs-on: ubuntu-latest |
|
timeout-minutes: 60 |
|
env: |
|
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack |
|
RUSTFLAGS: -D warnings |
|
steps: |
|
- name: Checkout repository |
|
uses: actions/checkout@v4 |
|
|
|
- name: Install Rust toolchain |
|
uses: dtolnay/rust-toolchain@stable |
|
with: |
|
toolchain: stable |
|
|
|
- uses: Swatinem/rust-cache@v2 |
|
- name: Install wasm-pack |
|
uses: baptiste0928/cargo-install@v3.1.0 |
|
with: |
|
crate: wasm-pack |
|
- name: Build Playground |
|
run: wasm-pack build ./ffi/wasm --verbose |
|
- name: Test (Chrome) |
|
run: wasm-pack test --headless --chrome ./ffi/wasm --verbose |
|
- name: Test (Firefox) |
|
run: wasm-pack test --headless --firefox ./ffi/wasm --verbose
|
|
|