From 7e304dfa569c13e9a4802cda4dd66d965e94ccb1 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Wed, 7 Jun 2023 16:23:28 -0400 Subject: [PATCH] rust lint action (#77) --- .github/workflows/rust-lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/rust-lint.yml diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml new file mode 100644 index 0000000000..6047673ea6 --- /dev/null +++ b/.github/workflows/rust-lint.yml @@ -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 }}