Skip to content

Commit

Permalink
chore: add cargo fmt/clippy to CI pipeline
Browse files Browse the repository at this point in the history
fix #698
  • Loading branch information
HerringtonDarkholme committed Nov 17, 2023
1 parent dd54cb6 commit e7100df
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,29 @@ jobs:
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
fail_ci_if_error: true
check:
name: Lint/Format Check
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target/
key: ${{ runner.os }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-
- name: Format
run: cargo fmt --all -- --check
- name: Lint
run: cargo clippy --all-targets --all-features --release --locked -- -D clippy::all

0 comments on commit e7100df

Please sign in to comment.