Skip to content

Commit ad1077a

Browse files
committed
Require successful formatting in the CI pipeline
1 parent ef567f0 commit ad1077a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@ name: ci-build
33
on: [pull_request]
44

55
jobs:
6+
verify_formatting:
7+
runs-on: ubuntu-latest
8+
name: Verify code formatting
9+
10+
steps:
11+
- name: checkout-code
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
16+
- name: setup-dotnet
17+
uses: actions/setup-dotnet@v3
18+
19+
- name: tool restore
20+
run: dotnet tool restore
21+
22+
- name: validate formatting
23+
run: dotnet fantomas . --check
24+
625
build:
726
name: Build
827
runs-on: windows-latest
@@ -12,9 +31,11 @@ jobs:
1231
uses: actions/checkout@v3
1332
with:
1433
fetch-depth: 0
34+
1535
# setup dotnet based on global.json
1636
- name: setup-dotnet
1737
uses: actions/setup-dotnet@v3
38+
1839
# build it, test it, pack it
1940
- name: Run dotnet build (release)
2041
# see issue #105

0 commit comments

Comments
 (0)