Skip to content

Commit 6dd4ede

Browse files
committed
GitHubCI: respect DRY on .NET version
Thanks to: 639d425
1 parent dcc7433 commit 6dd4ede

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ on:
99
schedule:
1010
- cron: "0 0 * * *"
1111

12-
# As we use .NET 8 now, to run tools compiled for .NET 6 we need to set roll-forward to major
1312
env:
13+
DOTNET_VERSION: "8.0"
14+
# As we use .NET>6 now, to run tools compiled for .NETv6 we need to set roll-forward to major
1415
DOTNET_ROLL_FORWARD: Major
1516
TYPESCRIPT_VERSION: "5.8.3"
1617
CHECKOUT_ACTION_VERSION: "4"
@@ -39,7 +40,7 @@ jobs:
3940
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
4041
apt install --yes --no-install-recommends ca-certificates
4142
42-
apt install --yes --no-install-recommends dotnet-sdk-8.0
43+
apt install --yes --no-install-recommends dotnet-sdk-${{ env.DOTNET_VERSION }}
4344
4445
- name: Compile the conventions solution
4546
run: dotnet build --configuration Release conventions.sln
@@ -69,7 +70,7 @@ jobs:
6970
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
7071
apt install --yes --no-install-recommends ca-certificates
7172
72-
apt install --yes --no-install-recommends dotnet-sdk-8.0
73+
apt install --yes --no-install-recommends dotnet-sdk-${{ env.DOTNET_VERSION }}
7374
7475
- name: Run tests to validate F# scripts
7576
run: dotnet test src/FileConventions.Test/FileConventions.Test.fsproj
@@ -207,7 +208,7 @@ jobs:
207208
# The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
208209
apt install --yes --no-install-recommends ca-certificates
209210
210-
apt install --yes --no-install-recommends dotnet-sdk-8.0
211+
apt install --yes --no-install-recommends dotnet-sdk-${{ env.DOTNET_VERSION }}
211212
212213
- name: Check all files end with EOL
213214
run: dotnet fsi scripts/eofConvention.fsx

0 commit comments

Comments
 (0)