Skip to content

change max claim weight to 10 % from reserved (#1256) #1775

change max claim weight to 10 % from reserved (#1256)

change max claim weight to 10 % from reserved (#1256) #1775

name: Cargo fmt & clippy
on:
pull_request:
push:
branches: [master, develop]
env:
CARGO_TERM_COLOR: always
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
# v4.1.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: 'true'
# v2.1.0
- uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6
# v2.7.1
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8
with:
# 20GB of cache per repo per week
cache-provider: "buildjet"
# latest v2
- name: cargo install
uses: taiki-e/install-action@v2
with:
tool: clippy-sarif, sarif-fmt
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
env:
SKIP_WASM_BUILD: 1
run: cargo clippy --all-targets --features private-net,stage,wip,runtime-benchmarks
--message-format=json -- -D warnings | clippy-sarif | tee results.sarif | sarif-fmt
shell: bash
- name: Upload SARIF file
if: always()
# v2.24.2
uses: github/codeql-action/upload-sarif@49abf0ba24d0b7953cb586944e918a0b92074c80
with:
sarif_file: results.sarif