Skip to content

Commit cca109f

Browse files
authored
feat: Add support for .NET 10 (#33)
* feat: Add support for .NET 10 - Also bump dependencies to the latest version * ci: Bump to .NET 10
1 parent 4d99a13 commit cca109f

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ jobs:
2626
needs:
2727
- test
2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3030
- name: Format nuget version
3131
run: |
3232
echo "PACKAGE_VERSION=${PACKAGE_VERSION_PREFIXED#v}" | tee -a $GITHUB_ENV
33-
- uses: actions/setup-dotnet@v4
33+
- uses: actions/setup-dotnet@v5
3434
with:
35-
dotnet-version: 9.0.x
35+
dotnet-version: 10.0.x
3636
- name: Install dependencies
3737
run: dotnet restore
3838
- name: Build

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ jobs:
88
runs-on: ubuntu-latest
99
permissions:
1010
contents: read
11+
strategy:
12+
matrix:
13+
# Run test against LTS .NET versions and the latest current version
14+
dotnet-version: [8.0.x, 10.0.x]
1115
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-dotnet@v4
16+
- uses: actions/checkout@v6
17+
- uses: actions/setup-dotnet@v5
1418
with:
15-
dotnet-version: 9.0.x
19+
dotnet-version: ${{ matrix.dotnet-version }}
1620
- name: 📥 Restore dependencies
1721
run: dotnet restore --verbosity normal
1822
- name: 🔨 Build

.github/workflows/verify-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: github.event_name == 'pull_request'
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: yogevbd/enforce-label-action@a3c219da6b8fa73f6ba62b68ff09c469b3a1c024 # 2.2.2
22+
- uses: yogevbd/enforce-label-action@a3c219da6b8fa73f6ba62b68ff09c469b3a1c024 # v2.2.2
2323
with:
2424
REQUIRED_LABELS_ANY: "feature,bug,maintenance,dependencies,chore,ignore-for-release,major,minor,patch,github-actions"
2525
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['feature','bug','maintenance', 'dependencies', 'chore', 'ignore-for-release', 'bump-major', 'bump-minor', 'bump-patch', 'github-actions']"

.idea/.idea.GCloud.Compute.Metadata/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GCloud.Compute.Metadata.Tests/GCloud.Compute.Metadata.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
<IsPackable>false</IsPackable>
88
<IsTestProject>true</IsTestProject>
9-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
9+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
1010
<LangVersion>13</LangVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.0" />
15-
<PackageReference Include="NUnit" Version="4.3.2" />
16-
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
17-
<PackageReference Include="NUnit.Analyzers" Version="4.8.1">
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
15+
<PackageReference Include="NUnit" Version="4.4.0" />
16+
<PackageReference Include="NUnit3TestAdapter" Version="6.0.0" />
17+
<PackageReference Include="NUnit.Analyzers" Version="4.11.2">
1818
<PrivateAssets>all</PrivateAssets>
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2020
</PackageReference>

GCloud.Compute.Metadata.V1/GCloud.Compute.Metadata.V1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1717
<PackageTags>google cloud metadata</PackageTags>
1818
<LangVersion>13</LangVersion>
19-
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
19+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
2020
</PropertyGroup>
2121
<ItemGroup>
2222
<None Include="..\LICENSE">

0 commit comments

Comments
 (0)