Skip to content

Qodana

Qodana #176

Workflow file for this run

name: Qodana
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0,3,5' # At 00:00 on Sunday, Wednesday, and Friday.
# pull_request:
# branches:
# - main
jobs:
qodana:
runs-on: windows-latest
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
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
permissions:
actions: read
contents: write
pull-requests: write
checks: write
security-events: write
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
submodules: recursive # many many submodules
- name: Install winget
uses: Cyberboss/install-winget@v1
- name: Install Qodana CLI
run: |
winget install -e --id JetBrains.QodanaCLI --force
qodana --version
- 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
run: |
qodana scan --ide QDNET-EAP -o ${{ runner.temp }}\qodana\results --cache-dir ${{ runner.temp }}\qodana\cache
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ runner.temp }}\qodana\results\qodana.sarif.json