Skip to content

Commit

Permalink
Tweak setup .net step
Browse files Browse the repository at this point in the history
  • Loading branch information
damianh committed Nov 10, 2024
1 parent 2705dbd commit 97090c4
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
7 changes: 4 additions & 3 deletions .github/workflow-gen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ 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", "9.0.x");
=> job.Step()
.Name("Setup .NET")
.Uses("actions/setup-dotnet@v4")
.With(("dotnet-version", "9.0.x"));

public static Step IfRefMain(this Step step)
=> step.If("github.ref == 'refs/heads/main'");
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/access-token-management-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 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
8 changes: 4 additions & 4 deletions .github/workflows/access-token-management-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -81,10 +81,10 @@ jobs:
with:
name: artifacts
path: artifacts
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: List files
run: tree
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/identity-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 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
4 changes: 2 additions & 2 deletions .github/workflows/identity-model-oidc-client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 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
8 changes: 4 additions & 4 deletions .github/workflows/identity-model-oidc-client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -81,10 +81,10 @@ jobs:
with:
name: artifacts
path: artifacts
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: List files
run: tree
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/identity-model-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -79,10 +79,10 @@ jobs:
with:
name: artifacts
path: artifacts
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: List files
run: tree
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ignore-this-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 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
8 changes: 4 additions & 4 deletions .github/workflows/ignore-this-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: Git tag
run: |-
git config --global user.email "[email protected]"
Expand Down Expand Up @@ -79,10 +79,10 @@ jobs:
with:
name: artifacts
path: artifacts
- name: Setup Dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x 9.0.x
dotnet-version: 9.0.x
- name: List files
run: tree
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion identity-model/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.100",
"version": "9.0.100-rc.2",
"rollForward": "latestMajor",
"allowPrerelease": true
}
Expand Down

0 comments on commit 97090c4

Please sign in to comment.