Split ICU4X data generation from boa_icu_provider
(#3682)
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1.0.7 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
- uses: Swatinem/rust-cache@v2 | |
- name: Cache npm build | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules | |
key: ${{ runner.os }}-npm-build-target-${{ hashFiles('**/package-lock.json') }} | |
- name: Install wasm-pack | |
uses: baptiste0928/cargo-install@v3.0.0 | |
with: | |
crate: wasm-pack | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "16" | |
- run: npm ci | |
- name: Build Playground | |
run: | | |
wasm-pack build ./ffi/wasm --verbose | |
npm run build | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run Playwright test | |
run: npm run e2e |