Skip to content

upload codecov coverage #4

upload codecov coverage

upload codecov coverage #4

Workflow file for this run

name: nmoneys build
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
env:
VERBOSITY: q
CONFIGURATION: Release
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.306
#- name: Info
# run: dotnet --info
- name: Restore
shell: pwsh
run: ./build.ps1 -task Restore -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Compile
shell: pwsh
run: ./build.ps1 -task Compile -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Test
shell: pwsh
run: ./build.ps1 -task Test -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Pack
shell: pwsh
run: ./build.ps1 -task Pack -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Copy-Artifacts
shell: pwsh
run: ./build.ps1 -task CopyArtifacts -verbosity "${{ env.VERBOSITY }}" -configuration "${{ env.CONFIGURATION }}"
- name: Test Reporter
if: ${{ !env.ACT }}
uses: dorny/test-reporter@v1.6.0
with:
name: Test Report
path: "./release/TestResults/*.trx"
reporter: dotnet-trx
fail-on-error: true
- name: Upload trx
uses: actions/upload-artifact@v3
with:
name: tests-results
path: |
./release/TestResults/*.trx
./release/TestResults/*.xml
- name: Upload bin
uses: actions/upload-artifact@v3
with:
name: bin
path: |
./release/*.xml
./release/*.pdb
./release/*.dll
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: packages
path: ./release/*.nupkg
- name: Upload Codecov Coverage
uses: codecov/codecov-action@v3
with:
# token: ${{ secrets.CODECOV_TOKEN }}
files: ./release/TestResults/coverage.cobertura.xml
flags: unittests # optional
name: codecov-nmoneys # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)