mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28:04 +00:00
chore: Update .github workflows for .NET version and action dependencies; add Qodana scan job
This commit is contained in:
@@ -25,7 +25,7 @@ permissions:
|
|||||||
security-events: write # Required for CodeQL analysis and uploading SARIF results
|
security-events: write # Required for CodeQL analysis and uploading SARIF results
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_VERSION: '8.x'
|
DOTNET_VERSION: '10.x'
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||||
|
|
||||||
@@ -151,17 +151,33 @@ jobs:
|
|||||||
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
|
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
|
||||||
|
|
||||||
- name: Upload Coverage to Codacy
|
- name: Upload Coverage to Codacy
|
||||||
uses: codacy/codacy-coverage-reporter-action@v1
|
uses: codacy/codacy-coverage-reporter-action@v1.3.0
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: '*cover*.xml'
|
coverage-reports: '*cover*.xml'
|
||||||
|
|
||||||
- name: Upload Coverage to Codecov
|
- name: Upload Coverage to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
files: 'cover*'
|
files: 'cover*'
|
||||||
verbose: true
|
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:
|
CodeQL:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -246,7 +262,7 @@ jobs:
|
|||||||
|
|
||||||
build_publish:
|
build_publish:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
needs: [Code_Coverage, CodeQL]
|
needs: [Code_Coverage, CodeQL, Qodana]
|
||||||
if: |
|
if: |
|
||||||
success() &&
|
success() &&
|
||||||
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) ||
|
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')) ||
|
||||||
@@ -265,14 +281,14 @@ jobs:
|
|||||||
dotnet-version: ${{ env.DOTNET_VERSION }}
|
dotnet-version: ${{ env.DOTNET_VERSION }}
|
||||||
|
|
||||||
- name: Install GitVersion
|
- name: Install GitVersion
|
||||||
uses: gittools/actions/gitversion/setup@v0
|
uses: gittools/actions/gitversion/setup@v3.1.11
|
||||||
with:
|
with:
|
||||||
versionSpec: '6.x'
|
versionSpec: '6.x'
|
||||||
includePrerelease: true
|
includePrerelease: true
|
||||||
|
|
||||||
- name: Determine Version
|
- name: Determine Version
|
||||||
id: gitversion
|
id: gitversion
|
||||||
uses: gittools/actions/gitversion/execute@v0
|
uses: gittools/actions/gitversion/execute@v3.1.11
|
||||||
with:
|
with:
|
||||||
useConfigFile: true
|
useConfigFile: true
|
||||||
updateAssemblyInfo: false
|
updateAssemblyInfo: false
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
using System;
|
|
||||||
using System.Linq;
|
|
||||||
using Xunit;
|
|
||||||
|
|
||||||
namespace QuanTAlib.Tests;
|
namespace QuanTAlib.Tests;
|
||||||
|
|
||||||
public class HmaTests
|
public class HmaTests
|
||||||
|
|||||||
Reference in New Issue
Block a user