Skip to content

Commit

Permalink
updated dotnet-ubuntu.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Sep 20, 2024
1 parent 925020a commit f45e1be
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dotnet-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [ push ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,20 +22,20 @@ jobs:
run: dotnet restore ./src

- name: Build solution
run: dotnet build -c Debug ./src --verbosity minimal
run: dotnet build -c Release ./src --verbosity minimal

- name: Run tests and collect coverage
run: dotnet test -c Debug ./src --verbosity normal --no-build --no-restore --collect:"XPlat Code Coverage" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./TestResults/coverage.cobertura.xml
run: dotnet test -c Release ./src --verbosity normal --no-build --no-restore --collect:"XPlat Code Coverage" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=./TestResults/coverage.cobertura.xml

- name: List files in TestResults directory
run: ls -R ./TestResults

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./TestResults/coverage.cobertura.xml
flags: unit
name: codecov-umbrella
fail_ci_if_error: true # optional (default: false)
verbose: true
fail_ci_if_error: true
verbose: true

0 comments on commit f45e1be

Please sign in to comment.