fixed cargo release argument #31
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: Test for Web | |
on: | |
pull_request: | |
branches: [main, dev] | |
push: | |
branches: [main, dev] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
cargo_test_setup: | |
name: "setup test for web" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Cache cargo registry | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: "mimium-test for web" | |
run: wasm-pack test --node | |
working-directory: mimium-test | |
- name: "mimium-lang test for web" | |
run: wasm-pack test --node | |
working-directory: mimium-lang |