name: Lint
on:
push:
branches: [main, develop]
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
lint:
name: fmt + clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with:
persist-credentials: false
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 with:
repository: quinnjr/armature-testkit
ref: develop
path: armature-testkit
persist-credentials: false
- name: Move the checkout beside this crate
run: |
mkdir -p ../armature-testkit
cp -r armature-testkit/. ../armature-testkit/
rm -rf armature-testkit
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 with:
components: rustfmt, clippy
toolchain: stable
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 - run: cargo fmt --check
- run: cargo clippy --all-targets --all-features -- -D warnings