Skip to content

Commit

Permalink
rust lint action (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Jun 7, 2023
1 parent 9096d3c commit 7e304df
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/rust-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: clippy-action
on: [pull_request]
jobs:
clippy:
permissions:
checks: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}
workdir: ./nexus
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}

0 comments on commit 7e304df

Please sign in to comment.