Major CodeQA - 20250119 #441
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Qodana for Pull Request | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - preview | |
| - stable | |
| paths-ignore: | |
| - '**.md' | |
| - 'Hi3Helper.Core/Lang/**.json' | |
| - 'Docs/**' | |
| - '**/packages.lock.json' | |
| jobs: | |
| qodana: | |
| runs-on: windows-latest | |
| permissions: | |
| actions: read | |
| contents: write | |
| pull-requests: write | |
| checks: write | |
| security-events: write | |
| strategy: | |
| matrix: | |
| configuration: [Release] # No need to distribute Debug builds | |
| platform: [x64] | |
| framework: [net9.0-windows10.0.22621.0] | |
| env: | |
| Configuration: ${{ matrix.configuration }} | |
| Platform: ${{ matrix.platform }} | |
| DOTNET_INSTALL_DIR: '.\.dotnet' | |
| DOTNET_VERSION: '9.x' | |
| DOTNET_QUALITY: 'ga' | |
| NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages | |
| steps: | |
| # skip all the steps if the head repo is not the same as the main repo | |
| # https://github.com/orgs/community/discussions/26829#discussioncomment-3253575 | |
| - uses: actions/checkout@v4 | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} | |
| 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 | |
| submodules: recursive # many many submodules | |
| - name: Update submodules to match the PR branch | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: ${{ env.DOTNET_VERSION }} | |
| dotnet-quality: ${{ env.DOTNET_QUALITY }} | |
| cache: true | |
| cache-dependency-path: CollapseLauncher/packages.lock.json | |
| - name: 'Qodana Scan' | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} | |
| uses: JetBrains/qodana-action@latest | |
| with: | |
| args: --ide,QDNET | |
| pr-mode: true | |
| env: | |
| QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below | |
| - uses: github/codeql-action/upload-sarif@v3 | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} | |
| with: | |
| sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json |