Skip to content

Commit 1e7ce6c

Browse files
committed
Politely ask automation to run the unit tests before publishing a nuget package.
1 parent 14bca3f commit 1e7ce6c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
##if: github.event == 'watch' && github.actor == github.event.repository.owner.login #only me
12+
# if: github.event == 'watch' && github.actor == github.event.repository.owner.login #only me
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Setup .NET Core
1616
uses: actions/setup-dotnet@v1
1717
# with:
1818
# dotnet-version: 3.1.101
19-
- name: Build
19+
- name: Run Unit Test
20+
run: dotnet test /home/runner/work/OsmApiClient/OsmSharp.IO.API.Tests/OsmSharp.IO.API.Tests.csproj
21+
- name: Build Solution
2022
run: dotnet build --configuration Release
21-
# - name: Pack
22-
# run: dotnet pack /home/runner/work/OsmApiClient/OsmApiClient/src/OsmApiClient.csproj -o Artifacts
23-
# - uses: actions/upload-artifact@v1
24-
# with:
25-
# name: OsmApiClient.0.0.1-beta.4.nupkg
26-
# path: /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/*.nupkg
27-
- name: Nuget publish
23+
- name: Nuget Publish
2824
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NugetApiKey}} /home/runner/work/OsmApiClient/OsmApiClient/src/bin/Release/*.nupkg
2925

0 commit comments

Comments
 (0)