Skip to content

Commit

Permalink
Add a potpourri of linting tools
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Aug 4, 2023
1 parent 92594ec commit d6da52d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Rust lint and checks
run-name: Checking ${{ github.sha }}
on: # yamllint disable-line rule:truthy
- push
- pull_request
jobs:
rustfmt-clippy-check:
runs-on: ubuntu-latest
steps:
- name: Check out ${{ github.repository }}:${{ github.ref_name }}
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy, check
- run: rustfmt src/*
- uses: actions-rs/clippy@master
with:
args: --all-features --all-targets
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check

0 comments on commit d6da52d

Please sign in to comment.