Skip to content

Commit

Permalink
ci: try running dotnet setup before nuke
Browse files Browse the repository at this point in the history
  • Loading branch information
loekensgard committed Nov 16, 2023
1 parent f4b3779 commit 93a327f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/Build_and_Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
.nuke/temp
~/.nuget/packages
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: 'Run: Test'
run: ./build.cmd Test
- name: 'Publish: test-results'
Expand Down
4 changes: 4 additions & 0 deletions Serilog.Enrichers.AzureClaims.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Enrichers.AzureClai
EndProject
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}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{7BD92553-AD6B-438D-AEB7-2299509CC953}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
4 changes: 1 addition & 3 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Nuke.Common.CI;
using Nuke.Common.IO;
using Nuke.Common.Tools.DotNet;
using Nuke.Common.Tools.GitVersion;

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


Target Clean => _ => _
.Before(Restore)
.Executes(() =>
Expand Down Expand Up @@ -43,4 +41,4 @@ partial class Build : NukeBuild
.SetInformationalVersion(GitVersion.InformationalVersion)
.EnableNoRestore());
});
}
}
3 changes: 1 addition & 2 deletions build/_build.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -13,7 +13,6 @@
<ItemGroup>
<PackageReference Include="Nuke.Common" Version="7.0.6" />
</ItemGroup>

<ItemGroup>
<PackageDownload Include="Codecov.Tool" Version="[1.13.0]" />
<PackageDownload Include="GitVersion.Tool" Version="[5.12.0]" />
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "8.0.100" // Specify the .NET SDK version you intend to use
"version": "8.0.100"
}
}

0 comments on commit 93a327f

Please sign in to comment.