Skip to content

Commit 64fad7d

Browse files
committed
Enable CI format check
1 parent fd4b1a0 commit 64fad7d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,23 @@ on:
55
types: [opened, reopened, synchronize]
66

77
jobs:
8+
validate_format_config:
9+
name: Validate Format Config
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
- name: Install apt dependencies
15+
run: sudo apt-get -qq update && sudo apt-get -qq -y install curl
16+
- name: Compare against swift-mmio swift-format config
17+
run: |
18+
curl -sL https://raw.githubusercontent.com/apple/swift-mmio/refs/heads/main/.swift-format -o .swift-format-mmio
19+
diff .swift-format .swift-format-mmio
20+
821
tests:
922
name: Test
1023
uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main
24+
1125
soundness:
1226
name: Soundness
1327
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
@@ -16,5 +30,3 @@ jobs:
1630
license_header_check_enabled: false
1731
# https://github.com/apple/swift-algorithms/issues/251
1832
docs_check_enabled: false
19-
# https://github.com/apple/swift-algorithms/issues/252
20-
format_check_enabled: false

.swift-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"UseWhereClausesInForLoops" : false,
6565
"ValidateDocumentationComments" : true
6666
},
67-
"spacesBeforeEndOfLineComments" : 2,
67+
"spacesBeforeEndOfLineComments": 2,
6868
"spacesAroundRangeFormationOperators" : false,
6969
"tabWidth" : 2,
7070
"version" : 1

0 commit comments

Comments
 (0)