Skip to content

Commit 83dc80a

Browse files
glen-84pethin
authored andcommitted
Added .NET 10 (ChilliCream#8248)
1 parent e2eb737 commit 83dc80a

364 files changed

Lines changed: 17666 additions & 1361 deletions

File tree

Some content is hidden

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

.devcontainer/dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ EXPOSE 22
2424
# Start SSH service
2525
CMD ["/usr/sbin/sshd", "-D"]
2626

27-
# Install .NET SDKs (6, 7, 8 and 9)
27+
# Install .NET SDKs (6, 7, 8, 9, and 10)
2828
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \
2929
&& chmod +x dotnet-install.sh \
3030
&& ./dotnet-install.sh --channel 6.0 --install-dir /usr/share/dotnet \
3131
&& ./dotnet-install.sh --channel 7.0 --install-dir /usr/share/dotnet \
3232
&& ./dotnet-install.sh --channel 8.0 --install-dir /usr/share/dotnet \
3333
&& ./dotnet-install.sh --channel 9.0 --install-dir /usr/share/dotnet \
34+
&& ./dotnet-install.sh --channel 10.0 --install-dir /usr/share/dotnet \
3435
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
3536

3637
# Install Node.js LTS
@@ -56,4 +57,4 @@ RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor |
5657
# Clean up
5758
RUN rm dotnet-install.sh \
5859
&& apt-get clean \
59-
&& rm -rf /var/lib/apt/lists/*
60+
&& rm -rf /var/lib/apt/lists/*

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
- name: Install .NET
149149
uses: actions/setup-dotnet@v4
150150
with:
151-
dotnet-version: 9.x
151+
dotnet-version: 10.x
152152

153153
- name: Generate Test Matrix
154154
run: dotnet run --project ./.build -- GenerateMatrix
@@ -181,10 +181,11 @@ jobs:
181181
dotnet-version: |
182182
8.x
183183
9.x
184+
10.x
184185
185186
- name: Run Build
186187
id: run-build
187-
run: dotnet build ${{ matrix.path }} --framework net9.0 --verbosity q
188+
run: dotnet build ${{ matrix.path }} --framework net10.0 --verbosity q
188189
timeout-minutes: 5
189190

190191
- name: Log in to Docker Hub
@@ -205,7 +206,7 @@ jobs:
205206
run: >
206207
dotnet test ${{ matrix.path }}
207208
--collect:"XPlat Code Coverage;Format=opencover"
208-
--framework net9.0
209+
--framework net10.0
209210
--logger trx
210211
--no-build
211212
--

.github/workflows/coverage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
dotnet-version: |
3333
8.x
3434
9.x
35+
10.x
3536
3637
- name: Generate Test Matrix
3738
run: dotnet run --project ./.build -- GenerateMatrix
@@ -63,10 +64,11 @@ jobs:
6364
dotnet-version: |
6465
8.x
6566
9.x
67+
10.x
6668
6769
- name: Run Build
6870
id: run-build
69-
run: dotnet build ${{ matrix.path }} --framework net9.0 --verbosity q
71+
run: dotnet build ${{ matrix.path }} --framework net10.0 --verbosity q
7072
timeout-minutes: 5
7173

7274
- name: Log in to Docker Hub
@@ -82,7 +84,7 @@ jobs:
8284
run: >
8385
dotnet test ${{ matrix.path }}
8486
--collect:"XPlat Code Coverage;Format=opencover"
85-
--framework net9.0
87+
--framework net10.0
8688
--logger trx
8789
--no-build
8890
--verbosity q

.github/workflows/release.yml

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: 🚀 Release
22

33
on:
44
push:
@@ -7,51 +7,53 @@ on:
77

88
jobs:
99
release:
10+
name: 📦 Build & Publish NuGet Packages
1011
runs-on: ubuntu-22.04
1112
permissions:
1213
contents: write
1314
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
with:
17-
show-progress: false
18-
19-
- name: Install .NET
20-
uses: actions/setup-dotnet@v4
21-
with:
22-
dotnet-version: |
23-
8.x
24-
9.x
25-
26-
- name: Get the version
27-
id: get_version
28-
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
29-
30-
- name: Build Packages
31-
run: |
32-
./build.sh pack --SemVersion ${{ env.GIT_TAG }} --Configuration Release
33-
34-
- name: Push Packages
35-
run: |
36-
./build.cmd publish --skip
37-
env:
38-
NuGetApiKey: ${{ secrets.NUGETAPIKEY }}
39-
40-
- name: Get release
41-
id: get_release
42-
run: |
43-
RELEASE_ID=$(gh api repos/ChilliCream/graphql-platform/releases/tags/${{ env.GIT_TAG }} --jq '.id')
44-
UPLOAD_URL=$(gh api repos/ChilliCream/graphql-platform/releases/$RELEASE_ID --jq '.upload_url')
45-
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
46-
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
47-
env:
48-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- name: Upload Release Assets
51-
run: |
52-
for file in ./output/packages/*.nupkg; do
53-
echo "Uploading $file"
54-
gh release upload ${{ env.GIT_TAG }} "$file" --repo ChilliCream/graphql-platform
55-
done
56-
env:
57-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
- name: 📦 Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
show-progress: false
19+
20+
- name: 🛠 Install .NET
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: |
24+
8.x
25+
9.x
26+
10.x
27+
28+
- name: 🏷 Get the version from tag
29+
id: get_version
30+
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
31+
32+
- name: 📦 Build NuGet Packages
33+
run: |
34+
./build.sh pack --SemVersion ${{ env.GIT_TAG }} --Configuration Release
35+
36+
- name: 🚀 Push Packages to NuGet
37+
run: |
38+
./build.cmd publish --skip
39+
env:
40+
NuGetApiKey: ${{ secrets.NUGETAPIKEY }}
41+
42+
- name: 🔎 Get GitHub Release Info
43+
id: get_release
44+
run: |
45+
RELEASE_ID=$(gh api repos/ChilliCream/graphql-platform/releases/tags/${{ env.GIT_TAG }} --jq '.id')
46+
UPLOAD_URL=$(gh api repos/ChilliCream/graphql-platform/releases/$RELEASE_ID --jq '.upload_url')
47+
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
48+
echo "UPLOAD_URL=${UPLOAD_URL}" >> $GITHUB_ENV
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: 📤 Upload .nupkg Release Assets
53+
run: |
54+
for file in ./output/packages/*.nupkg; do
55+
echo "📤 Uploading $file"
56+
gh release upload ${{ env.GIT_TAG }} "$file" --repo ChilliCream/graphql-platform
57+
done
58+
env:
59+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ else
4141
DOTNET_DIRECTORY="$TEMP_DIRECTORY/dotnet-unix"
4242

4343
# install older frameworks for tests
44-
"$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "8.0.404" --no-path
45-
"$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "9.0.100" --no-path
44+
"$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "8.0.408" --no-path
45+
"$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "9.0.203" --no-path
46+
"$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "10.0.100-preview.4.25258.110" --no-path
4647

4748
# If global.json exists, load expected version
4849
if [[ -f "$DOTNET_GLOBAL_FILE" ]]; then

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.200",
3+
"version": "10.0.100-preview.4.25258.110",
44
"rollForward": "latestMinor"
55
}
66
}

src/CookieCrumble/src/CookieCrumble.TUnit/CookieCrumble.TUnit.csproj

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

1818
<ItemGroup>
1919
<!-- Package the generator in the analyzer directory of the nuget package -->
20-
<None Include="$(OutputPath)\net9.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
20+
<None Include="$(OutputPath)\net10.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
2121
</ItemGroup>
2222

2323
</Project>

src/CookieCrumble/src/CookieCrumble.Xunit/CookieCrumble.Xunit.csproj

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

2020
<ItemGroup>
2121
<!-- Package the generator in the analyzer directory of the nuget package -->
22-
<None Include="$(OutputPath)\net9.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
22+
<None Include="$(OutputPath)\net10.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
2323
</ItemGroup>
2424

2525
</Project>

src/CookieCrumble/src/CookieCrumble.Xunit3/CookieCrumble.Xunit3.csproj

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

1919
<ItemGroup>
2020
<!-- Package the generator in the analyzer directory of the nuget package -->
21-
<None Include="$(OutputPath)\net9.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
21+
<None Include="$(OutputPath)\net10.0\CookieCrumble.Analyzers.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
2222
</ItemGroup>
2323

2424
</Project>

src/CookieCrumble/src/CookieCrumble/Utilities/TestEnvironment.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ public static class TestEnvironment
1717
/// The target framework identifier.
1818
/// </summary>
1919
public const string TargetFramework = "NET9_0";
20+
#elif NET10_0
21+
/// <summary>
22+
/// The target framework identifier.
23+
/// </summary>
24+
public const string TargetFramework = "NET10_0";
2025
#endif
2126

2227
public static bool IsLocalEnvironment()

0 commit comments

Comments
 (0)