Skip to content

Merge pull request #91 from Concordium/kpi-tracker-ccd-transactions #273

Merge pull request #91 from Concordium/kpi-tracker-ccd-transactions

Merge pull request #91 from Concordium/kpi-tracker-ccd-transactions #273

Workflow file for this run

name: Fmt and Clippy
# This job runs rustfmt and clippy linting,
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch: # allows manual trigger
env:
RUST_FMT: nightly-2023-04-01-x86_64-unknown-linux-gnu
RUST_CLIPPY: "1.70"
jobs:
"lint_fmt":
name: lint:fmt
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
strategy:
matrix:
crates:
- wallet-proxy-load-simulator/Cargo.toml
- state-compare/Cargo.toml
- genesis-creator/Cargo.toml
- id-verifier/Cargo.toml
- kpi-tracker/Cargo.toml
- network-dashboard-proxy/Cargo.toml
- chain-prometheus-exporter/Cargo.toml
- recover-id-object/Cargo.toml
- generator/Cargo.toml
- wallet-connect-test-bench/smart-contract/Cargo.toml
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_FMT }}
override: true
components: rustfmt
- name: Format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path=${{ matrix.crates }} -- --check
"lint_clippy":
name: lint:clippy
needs: "lint_fmt"
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
strategy:
matrix:
crates:
- wallet-proxy-load-simulator/Cargo.toml
- state-compare/Cargo.toml
- genesis-creator/Cargo.toml
- id-verifier/Cargo.toml
- kpi-tracker/Cargo.toml
- network-dashboard-proxy/Cargo.toml
- chain-prometheus-exporter/Cargo.toml
- recover-id-object/Cargo.toml
- generator/Cargo.toml
- wallet-connect-test-bench/smart-contract/Cargo.toml
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_CLIPPY }}
override: true
target: ${{ env.TARGET }}
components: rustfmt, clippy
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path ${{ matrix.crates }} -- -D warnings