--- name: WASM Testing # Trigger the workflow on push or pull request "on": [push, pull_request] env: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: wasm_test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install dependencies run: | sudo apt-get update && sudo apt-get install -y \ libpam0g-dev \ libudev-dev \ libssl-dev \ libsqlite3-dev \ pkg-config - name: Setup sccache uses: mozilla-actions/sccache-action@v0.0.3 with: version: "v0.4.2" - name: Install wasm-pack run: cargo install wasm-pack # https://github.com/browser-actions/setup-chrome - name: Install Chrome Headless uses: browser-actions/setup-chrome@latest with: chrome-version: latest # https://github.com/marketplace/actions/setup-chromedriver - uses: nanasess/setup-chromedriver@v1 # with: # Optional: do not specify to match Chrome's version # chromedriver-version: '88.0.4324.96' # docs here: # https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/browsers.html - run: make webui - run: wasm-pack test --headless --chrome continue-on-error: true