Skip to content

Clean up the integration tests #938

Clean up the integration tests

Clean up the integration tests #938

Workflow file for this run

# Separate workflow for the wasmer-web crate.
#
name: Wasmer Web
on:
push:
branches:
- main
pull_request:
# Automatically cancel previous workflow runs when a new commit is pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
jobs:
web:
name: Build and Test (wasmer-web)
runs-on: ubuntu-latest
defaults:
run:
working-directory: lib/wasi-web
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-05-25
- name: Install wasm-pack
uses: taiki-e/install-action@v2
with:
tool: wasm-pack
- name: Setup Chromedriver
uses: nanasess/setup-chromedriver@v2
- name: Show Rust version
run: rustc --version --verbose
- name: Check formatting
shell: bash
run: cargo fmt --check
- name: Check
run: cargo check --verbose --locked
- name: Browser Integration Tests
run: |
set -xe
npm install
npm run build
npm run dev &
NPM_PID=$!
# Give the webpack dev server time to start
sleep 10
cd ../../tests/wasmer-web
cargo test --verbose --locked -- --test-threads=1