Skip to content

Commit

Permalink
running test on build job
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Jun 5, 2024
1 parent d8437cf commit 1b812a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:
uses: actions/[email protected]
with:
dotnet-version: 8.0.x


- name: Install dependencies
run: dotnet restore
- name: Test with dotnet
run: dotnet test ${{ vars.CSPROJ_TESTS_PATH }} --logger trx --results-directory "TestResults-8.0"
- name: Build and Pack NuGet package with versioning
run: dotnet pack ${{ vars.CSPROJ_PATH }} -p:GeneratePackageOnBuild=false -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release

Expand Down Expand Up @@ -72,5 +76,5 @@ jobs:
with:
tag: ${{ needs.build.outputs.Version }}
name: Release ${{ needs.build.outputs.Version }}
artifacts: "/*"
artifacts: "*"
token: ${{ secrets.NUGET_PACKAGE_TOKEN }}

0 comments on commit 1b812a8

Please sign in to comment.