Skip to content

Commit

Permalink
changed pipeline to publish artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhey committed Aug 20, 2024
2 parents 4332361 + d386ad1 commit 97ad3c9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/dotnet-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,35 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --filter Category=UnitTest --no-restore --verbosity normal

- name: Generate coverage report
run: dotnet test --filter Category=UnitTest --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov

- name: Pack NuGet-Package
run: dotnet pack --configuration Release --no-restore --no-build
- name: Publish coverage report to coveralls.io
uses: coverallsapp/[email protected]
run: dotnet pack --configuration Release --no-restore --no-build --output nupkgs

- name: Upload NuGet-Package
uses: actions/upload-artifact@v4
with:
name: nuget-package
path: /home/runner/work/RedmineHourglassNet/RedmineHourglassNet/nupkgs/Develappers.RedmineHourglassApi.2.0.0-alpha.nupkg

- name: Publish coverage report to coveralls.io
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./Develappers.RedmineHourglassApi.Tests/TestResults/coverage.info

0 comments on commit 97ad3c9

Please sign in to comment.