mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-02 19:37:43 +00:00
fixed github actions
This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
||||
- name: Install dotnet-coverage
|
||||
run: dotnet tool install dotnet-coverage --global
|
||||
- name: Install CodeCov
|
||||
run: dotnet tool install --global Codecov.Tool
|
||||
run: dotnet add package CodecovUploader
|
||||
|
||||
- name: Sonar start
|
||||
env:
|
||||
@@ -56,17 +56,14 @@ jobs:
|
||||
- name: Build Strategies DLL
|
||||
run: dotnet build ./Strategies/Strategies.csproj --verbosity minimal --configuration Release --nologo
|
||||
|
||||
- name: dotnet Test
|
||||
#if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet test ./Tests/Tests.csproj --verbosity minimal --configuration Release --nologo
|
||||
- name: DotCover Test XML
|
||||
#if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet dotcover test ./Tests/Tests.csproj --verbosity minimal --dcReportType=DetailedXML --dcoutput=./coveragereport.xml
|
||||
- name: DotCover Test HTML
|
||||
#if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet dotcover test ./Tests/Tests.csproj --verbosity minimal --dcReportType=HTML --dcoutput=./coveragereport.html
|
||||
- name: dotnet-coverage
|
||||
run: dotnet-coverage collect 'dotnet test' -f xml -o './coverage.xml'
|
||||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: ./coveragereport.xml
|
||||
verbose: true
|
||||
|
||||
- name: Sonar reporter
|
||||
env:
|
||||
@@ -74,10 +71,6 @@ jobs:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
||||
|
||||
- name: CodeCov run
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: codecov -f ./coveragereport.xml -v -t ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
- name: Codacy coverage reporter
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
uses: codacy/codacy-coverage-reporter-action@v1
|
||||
|
||||
Reference in New Issue
Block a user