Skip to content

Commit 93a327f

Browse files
committed
ci: try running dotnet setup before nuke
1 parent f4b3779 commit 93a327f

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.github/workflows/Build_and_Test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
.nuke/temp
3939
~/.nuget/packages
4040
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
41+
- name: Setup dotnet
42+
uses: actions/setup-dotnet@v3
43+
with:
44+
dotnet-version: '8.0.x'
4145
- name: 'Run: Test'
4246
run: ./build.cmd Test
4347
- name: 'Publish: test-results'

Serilog.Enrichers.AzureClaims.sln

+4
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Enrichers.AzureClai
1616
EndProject
1717
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Enrichers.AzureClaims.Tests", "tests\Serilog.Enrichers.AzureClaims.Tests\Serilog.Enrichers.AzureClaims.Tests.csproj", "{EAECB584-06F0-47BD-8A95-479C7E51ACF2}"
1818
EndProject
19+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{7BD92553-AD6B-438D-AEB7-2299509CC953}"
20+
EndProject
1921
Global
2022
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2123
Debug|Any CPU = Debug|Any CPU
2224
Release|Any CPU = Release|Any CPU
2325
EndGlobalSection
2426
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Release|Any CPU.ActiveCfg = Release|Any CPU
2529
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2630
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.Build.0 = Debug|Any CPU
2731
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Release|Any CPU.ActiveCfg = Release|Any CPU

build/Build.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Nuke.Common.CI;
33
using Nuke.Common.IO;
44
using Nuke.Common.Tools.DotNet;
5-
using Nuke.Common.Tools.GitVersion;
65

76
[ShutdownDotNetAfterServerBuild]
87
partial class Build : NukeBuild
@@ -12,7 +11,6 @@ partial class Build : NukeBuild
1211
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
1312
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
1413

15-
1614
Target Clean => _ => _
1715
.Before(Restore)
1816
.Executes(() =>
@@ -43,4 +41,4 @@ partial class Build : NukeBuild
4341
.SetInformationalVersion(GitVersion.InformationalVersion)
4442
.EnableNoRestore());
4543
});
46-
}
44+
}

build/_build.csproj

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
@@ -13,7 +13,6 @@
1313
<ItemGroup>
1414
<PackageReference Include="Nuke.Common" Version="7.0.6" />
1515
</ItemGroup>
16-
1716
<ItemGroup>
1817
<PackageDownload Include="Codecov.Tool" Version="[1.13.0]" />
1918
<PackageDownload Include="GitVersion.Tool" Version="[5.12.0]" />

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "8.0.100" // Specify the .NET SDK version you intend to use
3+
"version": "8.0.100"
44
}
55
}

0 commit comments

Comments
 (0)