Skip to content

Commit a5a1524

Browse files
committed
Add format check to CI pipeline
1 parent d83f40e commit a5a1524

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.config/dotnet-tools.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-format": {
6+
"version": "5.1.250801",
7+
"commands": [
8+
"dotnet-format"
9+
],
10+
"rollForward": false
11+
}
12+
}
13+
}

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@ jobs:
1919
with:
2020
fetch-depth: 0 # Important for minver to create the right version number
2121

22+
- name: Install tools
23+
run: dotnet tool restore
24+
2225
- name: Restore
2326
run: dotnet restore
2427

28+
- name: Format
29+
run: dotnet dotnet-format --verify-no-changes
30+
2531
- name: Build
2632
run: dotnet build --configuration Release --no-restore
2733

0 commit comments

Comments
 (0)