Allow use in a web worker #19
Workflow file for this run
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
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
just-test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v4 | |
# Install cargo dependencies | |
- uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941 | |
with: | |
crate: wasm-bindgen-cli | |
# Setup cargo cache | |
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 | |
# Setup chromedriver | |
- uses: nanasess/setup-chromedriver@480d644e773cd6d53e4cb76557c8ad5e5806d7da | |
- run: sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
# Install wasm32-unknown-unknown nightly | |
- run: rustup target add wasm32-unknown-unknown | |
# Run the tests | |
- run: cargo test --target wasm32-unknown-unknown | |
- run: cargo run --example basic --target wasm32-unknown-unknown |