Skip to content

Commit 357f789

Browse files
committed
Use allow-failure for unit tests
1 parent b4ce796 commit 357f789

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflow/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535

3636
- name: dotnet test
3737
run: dotnet test
38-
continue-on-error: true
38+
allow-failure: true

.github/workflow/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ jobs:
2626
# It'll take some time before we fully fix all the issues.
2727
- name: Test
2828
run: dotnet test --no-build --verbosity normal -p:Configuration=Release
29-
continue-on-error: true
29+
allow-failure: true
3030

3131
- name: Publish to NuGet
32+
if: ${{github.ref == 'refs/heads/main'}}
3233
run: dotnet nuget push "/home/runner/work/net-ipfs-http-client/net-ipfs-http-client/src/bin/Release/IpfsShipyard.Ipfs.Http.Client.*.*.*.nupkg" --skip-duplicate --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json
3334

0 commit comments

Comments
 (0)