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 }}