Update test to match new version #94
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: Rust | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cache installation of tools | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo | |
~/.rustup | |
key: ${{ runner.os }}-installation-03 | |
restore-keys: ${{ runner.os }}-installation | |
- name: Install wasm32 target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Install wasm-tools | |
run: cargo install wasm-tools | |
- name: Install jco | |
run: npm install -g @bytecodealliance/jco | |
- uses: actions/checkout@v3 | |
- name: Cache build folders | |
uses: actions/cache@v3 | |
with: | |
path: | | |
target | |
tests/instances | |
Cargo.lock | |
key: ${{ runner.os }}-build-folders-${{ hashFiles('crates/*/Cargo.toml') }} | |
restore-keys: ${{ runner.os }}-build-folders | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- name: Check compile warnings | |
env: | |
RUSTFLAGS: "-D warnings" | |
run: cargo check --all-features | |
- name: Check clippy warnings | |
env: | |
RUSTFLAGS: "-D warnings" | |
run: cargo clippy --all-features -- -D clippy::all | |
- name: Run tests | |
run: cd tests && bash run_all_tests.sh |