Skip to content

Commit 6437d3c

Browse files
committed
Ensure .NET9 installed on runner
1 parent caec2eb commit 6437d3c

9 files changed

+18
-15
lines changed

.github/workflow-gen/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ public static void EnvDefaults(this Workflow workflow)
180180
("DOTNET_CLI_TELEMETRY_OPTOUT", "true"));
181181

182182
public static void StepSetupDotNet(this Job job)
183-
=> job.Step()
184-
.Name("Setup .NET")
185-
.ActionsSetupDotNet("8.0.x");
183+
{
184+
job.Step()
185+
.Name("Setup Dotnet")
186+
.Uses($"actions/setup-dotnet@v4")
187+
.With(("dotnet-version", "[ 8.0.x, 9.0.x ]"));
188+
}
186189

187190
public static Step IfRefMain(this Step step)
188191
=> step.If("github.ref == 'refs/heads/main'");

.github/workflows/access-token-management-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Test - AccessTokenManagement.Tests
3636
run: dotnet test -c Release test/AccessTokenManagement.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
3737
- name: Test report - AccessTokenManagement.Tests

.github/workflows/access-token-management-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Git tag
3636
run: |-
3737
git config --global user.email "github-bot@duendesoftware.com"
@@ -88,7 +88,7 @@ jobs:
8888
- name: Setup Dotnet
8989
uses: actions/setup-dotnet@v4
9090
with:
91-
dotnet-version: 8.0.x
91+
dotnet-version: '[ 8.0.x, 9.0.x ]'
9292
- name: List files
9393
run: tree
9494
shell: bash

.github/workflows/identity-model-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Test - IdentityModel.Tests
3636
run: dotnet test -c Release test/IdentityModel.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
3737
- name: Test report - IdentityModel.Tests

.github/workflows/identity-model-oidc-client-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Test - IdentityModel.OidcClient.Tests
3636
run: dotnet test -c Release test/IdentityModel.OidcClient.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
3737
- name: Test report - IdentityModel.OidcClient.Tests

.github/workflows/identity-model-oidc-client-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Git tag
3636
run: |-
3737
git config --global user.email "github-bot@duendesoftware.com"
@@ -88,7 +88,7 @@ jobs:
8888
- name: Setup Dotnet
8989
uses: actions/setup-dotnet@v4
9090
with:
91-
dotnet-version: 8.0.x
91+
dotnet-version: '[ 8.0.x, 9.0.x ]'
9292
- name: List files
9393
run: tree
9494
shell: bash

.github/workflows/identity-model-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Git tag
3636
run: |-
3737
git config --global user.email "github-bot@duendesoftware.com"
@@ -86,7 +86,7 @@ jobs:
8686
- name: Setup Dotnet
8787
uses: actions/setup-dotnet@v4
8888
with:
89-
dotnet-version: 8.0.x
89+
dotnet-version: '[ 8.0.x, 9.0.x ]'
9090
- name: List files
9191
run: tree
9292
shell: bash

.github/workflows/ignore-this-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Test - IgnoreThis.Tests
3636
run: dotnet test -c Release test/IgnoreThis.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
3737
- name: Test report - IgnoreThis.Tests

.github/workflows/ignore-this-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Dotnet
3232
uses: actions/setup-dotnet@v4
3333
with:
34-
dotnet-version: 8.0.x
34+
dotnet-version: '[ 8.0.x, 9.0.x ]'
3535
- name: Git tag
3636
run: |-
3737
git config --global user.email "github-bot@duendesoftware.com"
@@ -86,7 +86,7 @@ jobs:
8686
- name: Setup Dotnet
8787
uses: actions/setup-dotnet@v4
8888
with:
89-
dotnet-version: 8.0.x
89+
dotnet-version: '[ 8.0.x, 9.0.x ]'
9090
- name: List files
9191
run: tree
9292
shell: bash

0 commit comments

Comments
 (0)