Skip to content

Commit

Permalink
Merge pull request #26 from rust-embedded-community/add-clippy
Browse files Browse the repository at this point in the history
Add clippy
  • Loading branch information
ryan-summers authored Aug 30, 2024
2 parents 05f0382 + 09c83b6 commit be2b623
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,36 @@ name: Rust

on: [push, pull_request]

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

jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt -- --check

build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Run Tests
run: cargo test

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clippy (default features)
run: cargo clippy
- name: Clippy (no features)
run: cargo clippy --no-default-features
- name: Clippy (all features)
run: cargo clippy --all-features


0 comments on commit be2b623

Please sign in to comment.