Skip to content

[Draft] [ICRC X] Batch canisters call #172

[Draft] [ICRC X] Batch canisters call

[Draft] [ICRC X] Batch canisters call #172

Workflow file for this run

name: CI
on: [pull_request]
jobs:
rust-checks:
runs-on: ubuntu-latest
strategy:
matrix:
ref-impl: [ ICRC-21 ]
steps:
- uses: actions/checkout@v4
- name: Install Rust
id: install-rust
run: |
rustup update stable --no-self-update
rustup component add rustfmt
rustup component add clippy
echo "cargo-version=$(cargo version)" >> $GITHUB_OUTPUT
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.ref-impl }}-${{ steps.install-rust.outputs.cargo-version }}-${{ hashFiles('**/Cargo.lock') }}
- name: Check Format
working-directory: reference-implementations/${{ matrix.ref-impl }}
run: cargo fmt --check
- name: Clippy
working-directory: reference-implementations/${{ matrix.ref-impl }}
run: cargo clippy --tests --benches -- -D clippy::all
- name: Test
working-directory: reference-implementations/${{ matrix.ref-impl }}
run: cargo test
env:
RUST_BACKTRACE: 1