Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
b3b00 committed Nov 20, 2023
1 parent 63ed12f commit 1ecf922
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,38 +32,38 @@ jobs:
dotnet-version: 7.0.x
- name: Clean artifacts and nugets
run: dotnet clean --configuration Release && dotnet nuget locals all --clear
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Test with dotnet
uses: b3b00/coverlet-action@1.2.7
id: 'coverlet'
if: env.RUN_TESTS
with:
testProject: ${{env.TESTS_PROJECT}}
output: 'lcov.net7.0.info'
threshold: 80
outputFormat: 'lcov'
excludes: '[program]*,[expressionParser]*,[jsonparser]*,[while]*,[indentedWhile]*,[SimpleExpressionParser]*,[GenericLexerWithCallbacks]*,[indented]*,[postProcessedLexerParser]*,[XML]*,[SimpleTemplate]*'
# - name: Build with dotnet
# run: dotnet build --configuration Release
# - name: Test with dotnet
# uses: b3b00/coverlet-action@1.2.7
# id: 'coverlet'
# if: env.RUN_TESTS
# with:
# testProject: ${{env.TESTS_PROJECT}}
# output: 'lcov.net7.0.info'
# threshold: 80
# outputFormat: 'lcov'
# excludes: '[program]*,[expressionParser]*,[jsonparser]*,[while]*,[indentedWhile]*,[SimpleExpressionParser]*,[GenericLexerWithCallbacks]*,[indented]*,[postProcessedLexerParser]*,[XML]*,[SimpleTemplate]*'

- name: coveralls
uses: coverallsapp/github-action@v1.1.1
if: matrix.os == 'windows-latest' && env.RUN_TESTS
with:
github-token: ${{secrets.GITHUB_TOKEN }}
path-to-lcov: ${{steps.coverlet.outputs.coverageFile}}
#base-path: ${{github.workspace}}
- name: ReportGenerator
uses: danielpalme/ReportGenerator-GitHub-Action@4.8.12
with:
reports: ${{steps.coverlet.outputs.coverageFile}}
targetdir: 'coveragereport'
reporttypes: 'HtmlInline;MarkdownSummary'
verbosity: 'Info' # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off
tag: '${{ github.run_number }}_${{ github.run_id }}'
# - name: Publish coverage summary
# uses: marocchino/sticky-pull-request-comment@v2
# - name: coveralls
# uses: coverallsapp/github-action@v1.1.1
# if: matrix.os == 'windows-latest' && env.RUN_TESTS
# with:
# github-token: ${{secrets.GITHUB_TOKEN }}
# path-to-lcov: ${{steps.coverlet.outputs.coverageFile}}
# #base-path: ${{github.workspace}}
# - name: ReportGenerator
# uses: danielpalme/ReportGenerator-GitHub-Action@4.8.12
# with:
# path: coveragereport/Summary.md
# reports: ${{steps.coverlet.outputs.coverageFile}}
# targetdir: 'coveragereport'
# reporttypes: 'HtmlInline;MarkdownSummary'
# verbosity: 'Info' # The verbosity level of the log messages. Values: Verbose, Info, Warning, Error, Off
# tag: '${{ github.run_number }}_${{ github.run_id }}'
## - name: Publish coverage summary
## uses: marocchino/sticky-pull-request-comment@v2
## with:
## path: coveragereport/Summary.md
- name: publish nuget
if: ${{success() && matrix.os == 'windows-latest' && env.PUBLISH_NUGET}}
id: publish_nuget
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Create Release
if: ${{ success() && matrix.os == 'windows-latest' && steps.publish_nuget.outputs.VERSION != '' && steps.publish_nuget.outputs.VERSION != null }}
id: create_release
uses: b3b00/create-release@1.0.4
uses: b3b00/create-release@1.0.5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
with:
Expand Down

0 comments on commit 1ecf922

Please sign in to comment.