Skip to content

Commit c017b31

Browse files
Cleanup, added test publish and commented on problems
1 parent 09e07e9 commit c017b31

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,37 @@ jobs:
1717
- uses: actions/setup-dotnet@v4
1818
with: { dotnet-version: '8.0.x' }
1919

20+
- name: Restore
21+
run: dotnet restore .\src
22+
23+
- name: Build
24+
run: dotnet build -c Release .\src --no-restore
25+
2026
- name: Run Core.Tests
21-
run: dotnet test .\src\DevOpsDaysTasks.Core.Tests
27+
run: dotnet test -c Release .\src\DevOpsDaysTasks.Core.Tests --no-build --logger html --results-directory TestResults-Core.Tests
28+
29+
- name: Upload Core.Tests results
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: TestResults-Core.Tests
33+
path: TestResults-Core.Tests/
34+
if: ${{ always() }}
2235

2336
- name: Run IntegrationTests
24-
run: dotnet test .\src\DevOpsDaysTasks.IntegrationTests
37+
run: dotnet test -c Release .\src\DevOpsDaysTasks.IntegrationTests --no-build --logger html --results-directory TestResults-IntegrationTests
38+
39+
- name: Upload Core.Tests results
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: TestResults-IntegrationTests
43+
path: TestResults-IntegrationTests/
44+
if: ${{ always() }}
2545

46+
# Problem: `Version` and `VersionName` is hardcoded
2647
- name: Publish Release
2748
run: dotnet publish -c Release src\DevOpsDaysTasks.UI -o DevOpsDaysTasks /p:Version=2.0.0 /p:VersionName=Bear
2849

50+
# Problem: Where to get the external files from
2951
- name: Copy templates
3052
run: |
3153
mkdir DevOpsDaysTasks/Templates
@@ -36,9 +58,11 @@ jobs:
3658
mkdir DevOpsDaysTasks/Help
3759
cp workshop_material/Help.pdf DevOpsDaysTasks/Help
3860
61+
# Problem: Cert (external file) and password hardcoded
3962
- name: Sign release
4063
run: .\scripts\sign.ps1 .\DevOpsDaysTasks\DevOpsDaysTasks.UI.exe -PfxFile .\workshop_material\devopsdays_tasks_codesign.pfx -PfxPassword Password
4164

65+
# Problem: Only upload to pipeline not to GitHub Releases
4266
- name: Upload release
4367
uses: actions/upload-artifact@v4
4468
with:

0 commit comments

Comments
 (0)