kanidm/.github/workflows/wasm_test.yml
dependabot[bot] b53eb831d8
Bump the all group with 2 updates (#2850)
Bumps the all group with 2 updates: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `mozilla-actions/sccache-action` from 0.0.4 to 0.0.5
- [Release notes](https://github.com/mozilla-actions/sccache-action/releases)
- [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.4...v0.0.5)

Updates `docker/build-push-action` from 5 to 6
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: mozilla-actions/sccache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-23 15:21:15 -07:00

57 lines
1.6 KiB
YAML

---
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@v4
# - name: Check arch
# run: |
# uname -a
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.5
with:
version: "v0.4.2"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Install dependencies
run: |
scripts/install_ubuntu_dependencies.sh
# 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@v2
# with:
# Optional: do not specify to match Chrome's version
# chromedriver-version: '88.0.4324.96'
# - run: make webui
- name: "Run wasm-pack test"
# https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/browsers.html
run: |
rustup target add wasm32-unknown-unknown
make webui/test
- name: "Run webdriver tests"
run: |
chromedriver &
cargo test -p kanidmd_testkit --features webdriver test_webdriver
env:
DISPLAY: ":99"