Skip to content

Commit 84572df

Browse files
authored
Merge pull request #78 from KuraiAndras/develop
7.0.0
2 parents 8f7049f + be9691d commit 84572df

File tree

61 files changed

+367
-210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+367
-210
lines changed

.github/workflows/nukeeper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
env:
2929
NUKEEPER_TOKEN: ${{secrets.NUKEEPER_TOKEN}}
3030
run: |
31-
./build.ps1 UpdateNuGetPackages --nukeeper-token $env:NUKEEPER_TOKEN
31+
./build.ps1 UpdateNuGetPackages --is-ci --nukeeper-token $env:NUKEEPER_TOKEN

.github/workflows/publis-to-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Build DocFX
2323
shell: pwsh
24-
run: ./build.ps1 BuildDocs
24+
run: ./build.ps1 BuildDocs --is-ci
2525

2626
- name: Deploy to GitHub Pages
2727
uses: crazy-max/ghaction-github-pages@v2.2.0

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ jobs:
2525
shell: pwsh
2626
run: |
2727
./build.ps1 PushToNuGet `
28+
--is-ci `
2829
--nuget-api-key $env:NUGET_API_KEY `
29-
--configuration Release `
30+
--configuration Release

.github/workflows/run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
3737
run: |
3838
./build.ps1 RunSonar `
39+
--is-ci `
3940
--configuration Release `
4041
--sonar-host-url "https://sonarcloud.io" `
4142
--sonar-project-key "KuraiAndras_Injecter" `

.nuke/build.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
"VSCode"
4343
]
4444
},
45+
"IsCi": {
46+
"type": "boolean",
47+
"description": "Are we running inside a CI job?"
48+
},
4549
"NoLogo": {
4650
"type": "boolean",
4751
"description": "Disables displaying the NUKE logo"

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# 7.0.0
2+
- Add `MonoBehaviourInjected` and `MonoBehaviourScoped`
3+
- Renamed classes: \*MonoBehavior\* -> \*MonoBehavio**u**r\*
4+
- InjectedMonoBehavior now removes Scope from the store during `OnDestroy`
5+
- ScopeStore is now generic
6+
- Update dependencies
7+
- Update minimum Unity version to `2020.3`
8+
- Update to .NET 6 where not breaking
9+
110
# 6.1.2
211
- `UseUnity` requires all parameters specified
312

Injecter.Build/Build.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ sealed partial class Build : NukeBuild
2222
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
2323
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
2424

25+
[Parameter("Are we running inside a CI job?")]
26+
readonly bool IsCi = false;
27+
2528
[Solution] readonly Solution Solution;
2629

2730
Lazy<ImmutableArray<Project>> TestProjects => new(() =>

Injecter.Build/Injecter.Build.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5.0</TargetFramework>
5+
<TargetFramework>net6.0</TargetFramework>
66

77
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
88
<IsPackable>false</IsPackable>
@@ -14,12 +14,12 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Nuke.Common" Version="5.3.0" />
17+
<PackageReference Include="Nuke.Common" Version="6.0.1" />
1818
</ItemGroup>
1919

2020
<ItemGroup>
21-
<PackageDownload Include="docfx.console" Version="[2.58.9]" />
22-
<PackageDownload Include="dotnet-sonarscanner" Version="[5.4.0]" />
21+
<PackageDownload Include="docfx.console" Version="[2.59.0]" />
22+
<PackageDownload Include="dotnet-sonarscanner" Version="[5.5.3]" />
2323
<PackageDownload Include="NuGet.CommandLine" Version="[6.0.0]" />
2424
<PackageDownload Include="nukeeper" Version="[0.35.0]" />
2525
</ItemGroup>

Injecter.Build/Sonar.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Nuke.Common.Tools.SonarScanner;
44
using static Nuke.Common.Tools.SonarScanner.SonarScannerTasks;
55

6-
76
sealed partial class Build
87
{
98
[Parameter] readonly string SonarProjectKey = string.Empty;
@@ -13,6 +12,7 @@ sealed partial class Build
1312

1413
Target SonarBegin => _ => _
1514
.Before(Restore)
15+
.OnlyWhenDynamic(() => IsCi)
1616
.Requires(() => SonarProjectKey)
1717
.Requires(() => SonarToken)
1818
.Requires(() => SonarHostUrl)
@@ -27,6 +27,7 @@ sealed partial class Build
2727
.SetCoverageExclusions("**/*Samples*/**")));
2828

2929
Target SonarEnd => _ => _
30+
.OnlyWhenDynamic(() => IsCi)
3031
.DependsOn(SonarBegin)
3132
.DependsOn(Test)
3233
.Executes(() => SonarScannerEnd(s => s
@@ -35,6 +36,7 @@ sealed partial class Build
3536

3637
// ReSharper disable once UnusedMember.Local
3738
Target RunSonar => _ => _
39+
.OnlyWhenDynamic(() => IsCi)
3840
.DependsOn(SonarEnd)
3941
.Executes(() => { });
4042
}

Injecter.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29926.136
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.1.32210.238
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "X", "X", "{A6121CE2-43D9-414C-A432-C6313F951EBC}"
77
ProjectSection(SolutionItems) = preProject

0 commit comments

Comments
 (0)