66 pull_request :
77 branches :
88 - preview
9- - stable
9+ - stable
10+
11+ jobs :
12+ qodana :
13+ runs-on : windows-latest
14+ strategy :
15+ matrix :
16+ configuration : [Release] # No need to distribute Debug builds
17+ platform : [x64]
18+ framework : [net9.0-windows10.0.22621.0]
19+ env :
20+ Configuration : ${{ matrix.configuration }}
21+ Platform : ${{ matrix.platform }}
22+ DOTNET_INSTALL_DIR : ' .\.dotnet'
23+ DOTNET_VERSION : ' 9.x'
24+ DOTNET_QUALITY : ' ga'
25+ NUGET_PACKAGES : ${{ github.workspace }}/.nuget/packages
26+ permissions :
27+ actions : read
28+ contents : write
29+ pull-requests : write
30+ checks : write
31+ security-events : write
32+ steps :
33+ - uses : actions/checkout@v4
34+ with :
35+ ref : ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
36+ submodules : recursive # many many submodules
37+ # - name: Install winget
38+ # uses: Cyberboss/install-winget@v1
39+ # - name: Install Qodana CLI
40+ # uses: crazy-max/ghaction-chocolatey@v3
41+ # with:
42+ # args: install qodana --pre --confirm
43+
44+ # - name: Verify Qodana
45+ # run: |
46+ # Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
47+ # refreshenv
48+ # qodana --version
49+ - name : Install .NET
50+ uses : actions/setup-dotnet@v4
51+ with :
52+ dotnet-version : ${{ env.DOTNET_VERSION }}
53+ dotnet-quality : ${{ env.DOTNET_QUALITY }}
54+ cache : true
55+ cache-dependency-path : CollapseLauncher/packages.lock.json
56+ # - name: Qodana Scan
57+ # run: |
58+ # Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1"
59+ # refreshenv
60+ # qodana scan --ide QDNET-EAP -o ${{ runner.temp }}\qodana\results --cache-dir ${{ runner.temp }}\qodana\cache
61+ - name : Qodana Scan
62+ uses : JetBrains/qodana-action@v2024.3.3
63+ continue-on-error : true
64+ with :
65+ args : --ide,QDNET
66+ pr-mode : false
67+ env :
68+ QODANA_TOKEN : ${{ secrets.QODANA_TOKEN }}
69+ - uses : github/codeql-action/upload-sarif@v3
70+ if : always()
71+ continue-on-error : true
72+ with :
73+ sarif_file : ${{ runner.temp }}/qodana/results/qodana.sarif.json
0 commit comments