mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28:04 +00:00
chore: Enhance Snyk scan and GitVersion regex for improved branch handling
This commit is contained in:
@@ -264,11 +264,14 @@ jobs:
|
|||||||
- name: Install Snyk CLI
|
- name: Install Snyk CLI
|
||||||
uses: snyk/actions/setup@master
|
uses: snyk/actions/setup@master
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
- name: Run Snyk on Solution
|
- name: Run Snyk on Solution
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
run: snyk test --file=QuanTAlib.sln
|
run: snyk test --all-projects
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# 7. CodeQL Analysis
|
# 7. CodeQL Analysis
|
||||||
@@ -312,7 +315,7 @@ jobs:
|
|||||||
needs: [Build_Test_Coverage, Sonar_Analysis, Qodana_Scan, Codecov_Upload, Codacy_Upload, Snyk_Scan, CodeQL_Analysis]
|
needs: [Build_Test_Coverage, Sonar_Analysis, Qodana_Scan, Codecov_Upload, Codacy_Upload, Snyk_Scan, CodeQL_Analysis]
|
||||||
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' || endsWith(github.ref, '-dev'))) ||
|
||||||
github.event_name == 'workflow_dispatch'
|
github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -345,7 +348,7 @@ jobs:
|
|||||||
dotnet build ./quantower/Averages.csproj --configuration Release --nologo
|
dotnet build ./quantower/Averages.csproj --configuration Release --nologo
|
||||||
|
|
||||||
- name: Create Development Release
|
- name: Create Development Release
|
||||||
if: github.ref == 'refs/heads/dev'
|
if: github.ref == 'refs/heads/dev' || endsWith(github.ref, '-dev')
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
@@ -359,7 +362,7 @@ jobs:
|
|||||||
quantower/bin/Release/Averages.dll
|
quantower/bin/Release/Averages.dll
|
||||||
|
|
||||||
- name: Push to MyGet
|
- name: Push to MyGet
|
||||||
if: github.ref == 'refs/heads/dev'
|
if: github.ref == 'refs/heads/dev' || endsWith(github.ref, '-dev')
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
dotnet nuget push 'lib/bin/Release/QuanTAlib.*.nupkg' \
|
dotnet nuget push 'lib/bin/Release/QuanTAlib.*.nupkg' \
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ branches:
|
|||||||
increment: Patch
|
increment: Patch
|
||||||
track-merge-target: true
|
track-merge-target: true
|
||||||
track-merge-message: true
|
track-merge-message: true
|
||||||
regex: ^dev(elop)?(ment)?$
|
regex: ^dev(elop)?(ment)?$|.*-dev$
|
||||||
source-branches:
|
source-branches:
|
||||||
- main
|
- main
|
||||||
pre-release-weight: 30000
|
pre-release-weight: 30000
|
||||||
|
|||||||
Reference in New Issue
Block a user