Skip to content

Commit

Permalink
ci: Add clippy to Rust CI actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jetuk committed Mar 21, 2024
1 parent a0324a4 commit 6d85720
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -17,7 +19,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true

- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Install latest mdbook
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"

jobs:
build:
Expand All @@ -17,6 +19,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --verbose --no-default-features
- name: Run tests
Expand Down

0 comments on commit 6d85720

Please sign in to comment.