Skip to content

Fix release for new license files #2408

Fix release for new license files

Fix release for new license files #2408

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Forbid nocommit string
run: |
if results=$(git grep --column --line-number --only-matching '@''nocommit'); then
echo "$results"
awk <<<"$results" -F ':' '{ print "::error file=" $1 ",line=" $2 ",col=" $3 "::Illegal string: " $4 }'
exit 1
fi
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
- name: Cache dependencies
uses: Swatinem/rust-cache@e207df5d269b42b69c8bc5101da26f7d31feddb4
- name: Run `cargo fmt`
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run `cargo clippy`
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-features --all-targets -- -D warnings