mingyang91 commited on
Commit
904e51d
·
verified ·
1 Parent(s): da72bf8

try Qodana

Browse files

Signed-off-by: 明扬 <[email protected]>

Files changed (1) hide show
  1. .github/workflows/code_quality.yml +26 -0
.github/workflows/code_quality.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Qodana
2
+ on:
3
+ workflow_dispatch:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+ - master
9
+ - 'releases/*'
10
+
11
+ jobs:
12
+ qodana:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: write
16
+ pull-requests: write
17
+ checks: write
18
+ steps:
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/[email protected]
25
+ env:
26
+ QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}