You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
# --collect:"XPlat Code Coverage" means collect test coverage with https://github.com/coverlet-coverage/coverlet
33
+
# Coverlet settings come after --: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#advanced-options-supported-via-runsettings
- name: Upload CSharpMath.Rendering.Tests results as CI artifacts
56
+
uses: actions/upload-artifact@v4
57
+
if: always() # Run even when a previous step failed: https://stackoverflow.com/a/58859404/5429648
58
+
with:
59
+
name: CSharpMath.Rendering.Tests results
60
+
path: CSharpMath.Rendering.Tests/*/*.png
61
+
- name: Upload CSharpMath.Xaml.Tests.NuGet results as CI artifacts
62
+
uses: actions/upload-artifact@v4
63
+
if: always()
64
+
with:
65
+
name: CSharpMath.Xaml.Tests.NuGet results
66
+
path: CSharpMath.Xaml.Tests.NuGet/*.png
67
+
- name: Upload NuGet packages as CI artifacts
68
+
uses: actions/upload-artifact@v4
69
+
if: always()
70
+
with:
71
+
name: NuGet packages
72
+
path: .nupkgs/
73
+
- name: Push CI artifacts to GitHub Packages registry
74
+
if: github.ref == 'refs/heads/master'
75
+
run: |
76
+
# "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211
77
+
# So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation
78
+
# We use quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120
79
+
# --no-symbols true to not let GitHub Releases interpret .snupkg as .nupkg
run: dotnet test CSharpMath.sln -c Release -l GitHubActions --blame
44
-
Everything:
45
-
runs-on: windows-latest
46
-
steps:
47
-
- name: Update draft on GitHub Releases
48
-
id: release_drafter
49
-
uses: release-drafter/release-drafter@v6
50
-
env:
51
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52
-
- uses: actions/checkout@v6
53
-
with:
54
-
submodules: 'recursive'
55
-
- name: Setup .NET
56
-
uses: actions/setup-dotnet@v5
57
-
with:
58
-
dotnet-version: '10.x'
59
-
- name: Build and Test
60
-
env:
61
-
RELEASE_NOTES: |
62
-
# ${{ steps.release_drafter.outputs.name }}
63
-
64
-
${{ steps.release_drafter.outputs.body }}
65
-
run: |
66
-
# .NET Core MSBuild cannot parse , and ; correctly so we replace them with substitutions: https://github.com/dotnet/msbuild/issues/471#issuecomment-366268743
# --collect:"XPlat Code Coverage" means collect test coverage with https://github.com/coverlet-coverage/coverlet
72
-
# Coverlet settings come after --: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#advanced-options-supported-via-runsettings
- name: Upload CSharpMath.Rendering.Tests results as CI artifacts
95
-
uses: actions/upload-artifact@v4
96
-
if: always() # Run even when a previous step failed: https://stackoverflow.com/a/58859404/5429648
97
-
with:
98
-
name: CSharpMath.Rendering.Tests results
99
-
path: CSharpMath.Rendering.Tests/*/*.png
100
-
- name: Upload CSharpMath.Xaml.Tests.NuGet results as CI artifacts
101
-
uses: actions/upload-artifact@v4
102
-
if: always()
103
-
with:
104
-
name: CSharpMath.Xaml.Tests.NuGet results
105
-
path: CSharpMath.Xaml.Tests.NuGet/*.png
106
-
- name: Upload NuGet packages as CI artifacts
107
-
uses: actions/upload-artifact@v4
108
-
if: always()
109
-
with:
110
-
name: NuGet packages
111
-
path: .nupkgs/
112
-
- name: Push CI artifacts to GitHub Packages registry
113
-
if: github.ref == 'refs/heads/master'
114
-
run: |
115
-
# "dotnet nuget push" with "dotnet nuget add source" to GitHub Packages is unstable for project names with a dot: https://github.com/NuGet/Home/issues/9775#issuecomment-714509211
116
-
# So we must specify api-key directly in "dotnet nuget push" instead of following the GitHub Packages documentation
117
-
# We use quotes to avoid shell globbing: https://github.com/NuGet/Home/issues/4393#issuecomment-667618120
118
-
# --no-symbols true to not let GitHub Releases interpret .snupkg as .nupkg
0 commit comments