@@ -17,15 +17,37 @@ jobs:
17
17
- uses : actions/setup-dotnet@v4
18
18
with : { dotnet-version: '8.0.x' }
19
19
20
+ - name : Restore
21
+ run : dotnet restore .\src
22
+
23
+ - name : Build
24
+ run : dotnet build -c Release .\src --no-restore
25
+
20
26
- 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() }}
22
35
23
36
- 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() }}
25
45
46
+ # Problem: `Version` and `VersionName` is hardcoded
26
47
- name : Publish Release
27
48
run : dotnet publish -c Release src\DevOpsDaysTasks.UI -o DevOpsDaysTasks /p:Version=2.0.0 /p:VersionName=Bear
28
49
50
+ # Problem: Where to get the external files from
29
51
- name : Copy templates
30
52
run : |
31
53
mkdir DevOpsDaysTasks/Templates
36
58
mkdir DevOpsDaysTasks/Help
37
59
cp workshop_material/Help.pdf DevOpsDaysTasks/Help
38
60
61
+ # Problem: Cert (external file) and password hardcoded
39
62
- name : Sign release
40
63
run : .\scripts\sign.ps1 .\DevOpsDaysTasks\DevOpsDaysTasks.UI.exe -PfxFile .\workshop_material\devopsdays_tasks_codesign.pfx -PfxPassword Password
41
64
65
+ # Problem: Only upload to pipeline not to GitHub Releases
42
66
- name : Upload release
43
67
uses : actions/upload-artifact@v4
44
68
with :
0 commit comments