Skip to content

Commit b513105

Browse files
authored
chore!: update to .NET 8 (#197)
1 parent 40fa745 commit b513105

File tree

11 files changed

+46
-8
lines changed

11 files changed

+46
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929

3030
- name: 🔽 Setup dotnet from global.json
3131
uses: actions/setup-dotnet@v4
32+
with:
33+
global-json-file: global.json
34+
dotnet-version: |
35+
8
36+
6
3237
3338
- name: 🔽 Setup just
3439
uses: extractions/setup-just@v2

.github/workflows/release-please.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ jobs:
7070

7171
- name: 🔽 Setup dotnet from global.json
7272
uses: actions/setup-dotnet@v4
73+
with:
74+
global-json-file: global.json
75+
dotnet-version: |
76+
8
7377
7478
- name: 🔽 Setup just
7579
uses: extractions/setup-just@v2
@@ -132,6 +136,10 @@ jobs:
132136

133137
- name: 🔽 Install dotnet
134138
uses: actions/setup-dotnet@v4
139+
with:
140+
global-json-file: global.json
141+
dotnet-version: |
142+
8
135143
136144
- name: 🔼 Publish package to nuget
137145
run: dotnet nuget push --force-english-output --api-key '${{ secrets.GITHUB_TOKEN }}' --source 'https://nuget.pkg.github.com/YoloDev/index.json' --skip-duplicate "nuget/*.nupkg"
@@ -161,6 +169,10 @@ jobs:
161169

162170
- name: 🔽 Install dotnet
163171
uses: actions/setup-dotnet@v4
172+
with:
173+
global-json-file: global.json
174+
dotnet-version: |
175+
8
164176
165177
- name: 🔼 Publish package to nuget
166178
run: dotnet nuget push --force-english-output --api-key '${{ secrets.NUGET_API_KEY }}' --source '${{ secrets.NUGET_FEED }}' --skip-duplicate "nuget/*.nupkg"

.justfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,18 @@ test-legacy-failing: pack
3333
@check-platform:
3434
#!/usr/bin/env bash
3535
just test-platform
36+
status=$?
37+
38+
if [ $status -ne 0 ]; then
39+
echo "Expected tests to pass, but they failed (status code: $status)"
40+
exit 1
41+
fi
3642

3743
just test-platform-failing
3844
status=$?
3945

4046
if [ $status -eq 0 ]; then
41-
echo "Expected tests to fail, but they passed (status code: $Status)"
47+
echo "Expected tests to fail, but they passed (status code: $status)"
4248
exit 1
4349
fi
4450

@@ -47,12 +53,18 @@ test-legacy-failing: pack
4753
@check-legacy:
4854
#!/usr/bin/env bash
4955
just test-legacy
56+
status=$?
57+
58+
if [ $status -ne 0 ]; then
59+
echo "Expected tests to pass, but they failed (status code: $status)"
60+
exit 1
61+
fi
5062

5163
just test-legacy-failing
5264
status=$?
5365

5466
if [ $status -eq 0 ]; then
55-
echo "Expected tests to fail, but they passed (status code: $Status)"
67+
echo "Expected tests to fail, but they passed (status code: $status)"
5668
exit 1
5769
fi
5870

Directory.Packages.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<PackageVersion Include="Microsoft.Testing.Extensions.VSTestBridge" Version="1.5.3" />
77
<PackageVersion Include="Microsoft.Testing.Platform.MSBuild" Version="1.5.3" />
88
<PackageVersion Include="Microsoft.TestPlatform.ObjectModel" Version="17.12.0" />
9-
<PackageVersion Include="System.Collections.Immutable" Version="[9.0.1,)" />
109
</ItemGroup>
1110
</Project>

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<PropertyGroup>
55
<DebugType>portable</DebugType>
6-
<TargetFramework>net6.0</TargetFramework>
6+
<TargetFramework>net8.0</TargetFramework>
77
<IsPackable>true</IsPackable>
88
</PropertyGroup>
99

src/YoloDev.Expecto.TestSdk/YoloDev.Expecto.TestSdk.fsproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
</ItemGroup>
2323

2424
<ItemGroup>
25-
<None Include="build/net6.0/YoloDev.Expecto.TestSdk.props" Pack="true" PackagePath="build\net6.0\" />
26-
<None Include="build/net6.0/YoloDev.Expecto.TestSdk.targets" Pack="true" PackagePath="build\net6.0\" />
27-
<None Include="build/net6.0/_._" Pack="true" PackagePath="lib\net6.0\" Visible="false" />
25+
<None Include="build/net8.0/YoloDev.Expecto.TestSdk.props" Pack="true" PackagePath="build\net8.0\" />
26+
<None Include="build/net8.0/YoloDev.Expecto.TestSdk.targets" Pack="true" PackagePath="build\net8.0\" />
27+
<None Include="build/net8.0/_._" Pack="true" PackagePath="lib\net8.0\" Visible="false" />
2828
</ItemGroup>
2929

3030
<ItemGroup>

src/YoloDev.Expecto.TestSdk/build/net6.0/YoloDev.Expecto.TestSdk.props renamed to src/YoloDev.Expecto.TestSdk/build/net8.0/YoloDev.Expecto.TestSdk.props

File renamed without changes.

src/YoloDev.Expecto.TestSdk/build/net6.0/YoloDev.Expecto.TestSdk.targets renamed to src/YoloDev.Expecto.TestSdk/build/net8.0/YoloDev.Expecto.TestSdk.targets

File renamed without changes.
File renamed without changes.

test/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<PropertyGroup>
66
<IsPackable>false</IsPackable>
7-
<TargetFramework>net6.0</TargetFramework>
7+
<TargetFramework>net8.0</TargetFramework>
88
</PropertyGroup>
99

1010
<ItemGroup>

0 commit comments

Comments
 (0)