Skip to content

Commit 4797fb5

Browse files
Copilotpmaytak
andcommitted
refactor: Use global.json for .NET version in GitHub Actions
Co-authored-by: pmaytak <[email protected]>
1 parent 62a0147 commit 4797fb5

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,20 @@ jobs:
99
name: Abstractions GitHub Action Test
1010
steps:
1111
- name: Checkout repository
12-
uses: actions/checkout@v5
13-
- name: Setup .NET 8.0.x
12+
uses: actions/checkout@v5
13+
14+
- name: Use .NET version from global.json
1415
uses: actions/setup-dotnet@v5
1516
with:
16-
dotnet-version: 8.0.x
17-
18-
- name: Setup .NET 10.0.100
17+
global-json-file: global.json
18+
19+
- name: Setup .NET 8.0.x
1920
uses: actions/setup-dotnet@v5
2021
with:
21-
dotnet-version: 10.0.100
22+
dotnet-version: 8.0.x
2223

2324
# Run the tests
24-
- name: Build with .NET 8.0.x
25-
run: dotnet test -v m --configuration Release Microsoft.Identity.Abstractions.sln
26-
27-
# Run the tests
28-
- name: Build with .NET 10.0.100
25+
- name: Build and test
2926
run: dotnet test -v m --configuration Release Microsoft.Identity.Abstractions.sln
3027

3128
# Pack the library

0 commit comments

Comments
 (0)