Skip to content

Commit

Permalink
Ensure .NET9 installed on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed Nov 11, 2024
1 parent 224ccad commit aad5913
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 16 deletions.
10 changes: 6 additions & 4 deletions .github/workflow-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,12 @@ public static void EnvDefaults(this Workflow workflow)
("DOTNET_CLI_TELEMETRY_OPTOUT", "true"));

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

public static Step IfRefMain(this Step step)
=> step.If("github.ref == 'refs/heads/main'");
Expand Down Expand Up @@ -217,7 +220,6 @@ sudo update-ca-certificates
public static void StepToolRestore(this Job job)
=> job.Step()
.Name("Tool restore")
//.IfRefMain()
.Run("dotnet tool restore");

public static void StepPack(this Job job, string project)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Test - AccessTokenManagement.Tests
run: dotnet test -c Release test/AccessTokenManagement.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
- name: Test report - AccessTokenManagement.Tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/access-token-management-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: List files
run: tree
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/identity-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Test - IdentityModel.Tests
run: dotnet test -c Release test/IdentityModel.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
- name: Test report - IdentityModel.Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/identity-model-oidc-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Test - IdentityModel.OidcClient.Tests
run: dotnet test -c Release test/IdentityModel.OidcClient.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
- name: Test report - IdentityModel.OidcClient.Tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/identity-model-oidc-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: List files
run: tree
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/identity-model-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: List files
run: tree
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ignore-this-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Test - IgnoreThis.Tests
run: dotnet test -c Release test/IgnoreThis.Tests --logger "console;verbosity=normal" --logger "trx;LogFileName=Tests.trx" --collect:"XPlat Code Coverage"
- name: Test report - IgnoreThis.Tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ignore-this-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: '[ 8.0.x, 9.0.x ]'
- name: List files
run: tree
shell: bash
Expand Down

0 comments on commit aad5913

Please sign in to comment.