Pin specific version of try-runtime-cli to fix CI #57
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: Run contracts tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-C debug-assertions=y" | |
RUST_BACKTRACE: 1 | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Install Rust toolchain | |
run: | | |
rustup set profile minimal | |
rustup update --no-self-update 1.78.0 | |
rustup component add --toolchain 1.78.0 rustfmt rust-src | |
rustup target add wasm32-unknown-unknown | |
rustup default 1.78.0 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-all-crates: "true" | |
workspaces: "contracts -> contracts/target" | |
- name: Run tests | |
working-directory: contracts | |
run: cargo test |