Skip to content

Commit d7ec4ec

Browse files
Update lint.yaml
1 parent 1e9fb14 commit d7ec4ec

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
1-
name: Qodana Code Analysis
2-
1+
name: Qodana
32
on:
4-
push:
5-
branches:
6-
- main
3+
workflow_dispatch:
74
pull_request:
5+
push:
6+
branches: # Specify your branches here
7+
- main # The 'main' branch
8+
- master # The 'master' branch
9+
- 'releases/*' # The release branches
810

911
jobs:
1012
qodana:
11-
name: Run Qodana Analysis
1213
runs-on: ubuntu-latest
13-
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
checks: write
1418
steps:
15-
- name: Checkout Repository
16-
uses: actions/checkout@v4
17-
18-
- name: Run Qodana in Debug Mode
19-
uses: JetBrains/qodana-action@v2024.1
19+
- uses: actions/checkout@v3
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
22+
fetch-depth: 0 # a full history is required for pull request analysis
23+
- name: 'Qodana Scan'
24+
uses: JetBrains/qodana-action@v2024.3
2025
env:
2126
QODANA_TOKEN: ${{ secrets.QODANA }}
22-
23-
- name: Upload Qodana Results
24-
uses: actions/upload-artifact@v4
25-
with:
26-
name: qodana-results
27-
path: .qodana/results/
28-
29-
- name: Publish Qodana Annotations
30-
uses: github/codeql-action/upload-sarif@v3
31-
with:
32-
sarif_file: .qodana/results/qodana.sarif.json

0 commit comments

Comments
 (0)