Feature/1205275561797932 cargo clippy on node #74
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: Pull Request Check & Build | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- closed | |
jobs: | |
check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: "[Setup] Free Disk Space (insightsengineering/disk-space-reclaimer)" | |
uses: insightsengineering/[email protected] | |
- name: "[Setup] Linux Tools" | |
run: sudo apt install -y cmake pkg-config libssl-dev build-essential clang libclang-dev curl protobuf-compiler | |
- name: "[Setup] Rust" | |
run: | | |
TLCHNL=nightly-2022-11-03-x86_64-unknown-linux-gnu | |
TLCHNS=nightly-2022-11-03 | |
curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $TLCHNL | |
rustup target add wasm32-unknown-unknown --toolchain $TLCHNS | |
rustup component add rustfmt --toolchain $TLCHNS | |
rustup component add clippy --toolchain $TLCHNS | |
cargo install cargo-expand --locked --version 1.0.34 | |
- name: Checkout Sources (actions/checkout) | |
uses: actions/checkout@v3 | |
- name: "[Ceck] cargo fmt" | |
run: | | |
cargo fmt --check | |
- name: "[Check] cargo clippy" | |
run: | | |
cargo clippy --release -- -Dwarnings | |
- name: "[Check] cargo test" | |
run: | | |
SKIP_WASM_BUILD=1 cargo test --release |