chore: Update .github workflows for .NET version and action dependencies; add Qodana scan job

This commit is contained in:
Miha Kralj
2025-12-07 18:34:06 -08:00
parent 39feabcdf7
commit 6323f43db4
2 changed files with 22 additions and 10 deletions
+22 -6
View File
@@ -25,7 +25,7 @@ permissions:
security-events: write # Required for CodeQL analysis and uploading SARIF results
env:
DOTNET_VERSION: '8.x'
DOTNET_VERSION: '10.x'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -151,17 +151,33 @@ jobs:
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
- name: Upload Coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: '*cover*.xml'
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: 'cover*'
verbose: true
Qodana:
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
contents: write
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.3.4
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
CodeQL:
timeout-minutes: 30
runs-on: ubuntu-latest
@@ -246,7 +262,7 @@ jobs:
build_publish:
timeout-minutes: 20
needs: [Code_Coverage, CodeQL]
needs: [Code_Coverage, CodeQL, Qodana]
if: |
success() &&
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) ||
@@ -265,14 +281,14 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
uses: gittools/actions/gitversion/setup@v3.1.11
with:
versionSpec: '6.x'
includePrerelease: true
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
uses: gittools/actions/gitversion/execute@v3.1.11
with:
useConfigFile: true
updateAssemblyInfo: false