Skip to content

Merge pull request #389 from liberland/fix-deploying-contracts #160

Merge pull request #389 from liberland/fix-deploying-contracts

Merge pull request #389 from liberland/fix-deploying-contracts #160

Workflow file for this run

name: Run tests
on:
pull_request:
workflow_dispatch:
push:
branches:
- develop
- main
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: Free Disk Space
uses: jlumbroso/free-disk-space@main
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential git clang curl libssl-dev llvm libudev-dev make protobuf-compiler pkg-config git-restore-mtime
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
default: true
target: wasm32-unknown-unknown
components: rustfmt, clippy
- name: Checkout
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
cache-all-crates: "true"
- name: Run cargo test suite
run: cargo test -j2 --features runtime-benchmarks