diff --git a/.github/workflows/quality.yml b/.github/workflows/quality_game.yml similarity index 79% rename from .github/workflows/quality.yml rename to .github/workflows/quality_game.yml index 5a78104..980031f 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality_game.yml @@ -2,6 +2,8 @@ name: Qodana on: workflow_dispatch: pull_request: + paths: + - 'game/**' push: branches: # Specify your branches here - main # The 'main' branch @@ -25,7 +27,4 @@ jobs: args: -i,game push-fixes: pull-request env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - - uses: github/codeql-action/upload-sarif@v3 - with: - sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json \ No newline at end of file + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/quality_website.yml b/.github/workflows/quality_website.yml new file mode 100644 index 0000000..698db52 --- /dev/null +++ b/.github/workflows/quality_website.yml @@ -0,0 +1,30 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + paths: + - 'website/**' + push: + branches: # Specify your branches here + - main # The 'main' branch + +jobs: + 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@v2024.1 + with: + pr-mode: false + args: -i,website + push-fixes: pull-request + env: + QODANA_TOKEN: ${{ secrets.WEBPAGE_TOKEN }} \ No newline at end of file