From eee47f596561aedce737482716a364c8214b36eb Mon Sep 17 00:00:00 2001 From: romankr Date: Sat, 9 Mar 2024 22:36:09 +0400 Subject: [PATCH] Add Qodana inspection --- .../master-build-and-verify-pull-request.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master-build-and-verify-pull-request.yml b/.github/workflows/master-build-and-verify-pull-request.yml index 121870d..2941627 100644 --- a/.github/workflows/master-build-and-verify-pull-request.yml +++ b/.github/workflows/master-build-and-verify-pull-request.yml @@ -25,4 +25,20 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test --no-build --verbosity normal \ No newline at end of file + run: dotnet test --no-build --verbosity normal + + qodana: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.3 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}