Skip to content

Commit 29e0971

Browse files
committed
Run tests and allow docs upload
1 parent f7fb871 commit 29e0971

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build-and-publish.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ jobs:
7171
- name: Build Yubico.NET.SDK.sln
7272
run: dotnet build --configuration ReleaseWithDocs --nologo --verbosity normal Yubico.NET.SDK.sln
7373

74+
# Run tests
75+
- name: Test Yubico.YubiKey
76+
run: dotnet test --configuration ReleaseWithDocs --verbosity normal --no-build --nologo Yubico.YubiKey/tests/unit/Yubico.YubiKey.UnitTests.csproj
77+
78+
- name: Test Yubico.Core
79+
run: dotnet test --configuration ReleaseWithDocs --verbosity normal --no-build --nologo Yubico.Core/tests/Yubico.Core.UnitTests.csproj
80+
7481
# Upload artifacts
7582
- name: Save documentation artifacts
7683
uses: actions/upload-artifact@v4
@@ -86,6 +93,15 @@ jobs:
8693
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.nupkg
8794
Yubico.Core/src/bin/ReleaseWithDocs/*.nupkg
8895
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.nupkg
96+
97+
- name: Save build artifacts
98+
uses: actions/upload-artifact@v4
99+
with:
100+
name: Symbols Packages
101+
path: |
102+
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.snupkg
103+
Yubico.Core/src/bin/ReleaseWithDocs/*.snupkg
104+
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.snupkg
89105
90106
- name: Save build artifacts
91107
uses: actions/upload-artifact@v4
@@ -116,7 +132,7 @@ jobs:
116132
117133
upload-docs:
118134
uses: ./.github/workflows/upload-docs.yml
119-
if: ${{ github.event.inputs.upload-docs == 'true' }}
135+
#if: ${{ github.event.inputs.upload-docs == 'true' }}
120136
with:
121137
image_tag: 'yesdk-docserver'
122138
registry_url: 'us-docker.pkg.dev'

0 commit comments

Comments
 (0)