Monitor: reconstruct transactions for add_d1
example
#864
Workflow file for this run
This file contains hidden or 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: Protocols Tests | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
tests: | |
name: Unit Tests | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- name: Update Rust to ${{ matrix.toolchain }} | |
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- uses: actions/checkout@v4 | |
- uses: YosysHQ/setup-oss-cad-suite@v3 | |
with: | |
version: '2024-05-07' | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests (Debug) | |
run: cargo test --verbose | |
msrv: | |
name: Check Minimum Rust Version for protocols library | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/cache-cargo-install-action@v2 | |
with: | |
tool: cargo-msrv | |
- name: Check MSRV | |
working-directory: protocols | |
run: cargo msrv verify | |
format: | |
name: Check Formatting | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo fmt --check | |
clippy: | |
name: Clippy Lints | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 10 | |
env: | |
# Pin Rust version to prevent new Clippy lints from breaking CI | |
RUST_VERSION: "1.85.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust ${{ env.RUST_VERSION }} | |
run: | | |
rustup toolchain install ${{ env.RUST_VERSION }} --component clippy | |
rustup default ${{ env.RUST_VERSION }} | |
- uses: YosysHQ/setup-oss-cad-suite@v3 | |
with: | |
version: '2024-05-07' | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features -- -D warnings |