From f3130a5c4a088ebb869fb4618ff52dd8820f395d Mon Sep 17 00:00:00 2001 From: Rami Daghlawi Date: Wed, 13 Dec 2023 15:15:11 +0100 Subject: [PATCH] adding clippy as linter --- .github/workflows/run_linters.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/run_linters.yaml diff --git a/.github/workflows/run_linters.yaml b/.github/workflows/run_linters.yaml new file mode 100644 index 0000000..856666e --- /dev/null +++ b/.github/workflows/run_linters.yaml @@ -0,0 +1,14 @@ +name: clippy-action +on: [pull_request] +jobs: + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: giraffate/clippy-action@v1 + with: + reporter: 'github-pr-review' + github_token: ${{ secrets.GITHUB_TOKEN }}