-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed pipeline to publish artifact
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |