Fix lint #4
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: lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
clippy-and-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: ./.github/actions/cache | |
- run: rustup component add rustfmt | |
- name: fmt | |
run: | | |
cargo fmt --all -- --check | |
- name: clippy | |
# Check by `clippy` even if the previous step fails | |
if: success() || failure() | |
run: | | |
cargo clippy --all -- -D warnings |