ICRC-94: Multi Injected Provider Discovery for ICRC-25 #171
Workflow file for this run
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: 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 |