Skip to content

ICRC-94: Multi Injected Provider Discovery for ICRC-25 #171

ICRC-94: Multi Injected Provider Discovery for ICRC-25

ICRC-94: Multi Injected Provider Discovery for ICRC-25 #171

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