Skip to content

Commit 2ce2b16

Browse files
Fix workflows
- Install the .NET 8 SDK for testing. - Install the .NET SDK from `global.json` before running `dotnet format`.
1 parent 0e0771f commit 2ce2b16

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
filter: 'tree:0'
5252
show-progress: false
5353

54+
- name: Setup .NET 8 SDK
55+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
56+
with:
57+
dotnet-version: '8.0.x'
58+
5459
- name: Setup .NET SDK
5560
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
5661
id: setup-dotnet

.github/workflows/dotnet-format.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
permissions: {}
1919

2020
steps:
21-
- name: check out code
22-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
21+
22+
- name: Checkout code
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2324
with:
24-
persist-credentials: false
25+
fetch-depth: 0
26+
filter: 'tree:0'
27+
show-progress: false
28+
29+
- name: Setup .NET SDK
30+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
31+
id: setup-dotnet
2532

26-
- name: dotnet format
33+
- name: Run dotnet format
2734
run: dotnet format --verify-no-changes

0 commit comments

Comments
 (0)