Skip to content

Commit f34d571

Browse files
GitLab CI: lint Swift code
1 parent d3c54b7 commit f34d571

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
stages:
22
- verify
33

4-
verify_manifest:
4+
lint_code_and_check_manifest:
55
stage: verify
66
tags: [mac, x64, xcode]
77
before_script:
88
- xcodebuild -version
99
- swift -version
1010
script:
11+
# swift-format (https://github.com/swiftlang/swift-format) is currently installed
12+
# via Homebrew. With Swift 6 it will be available as `swift format`.
13+
# --recursive to look in any sub-directories
14+
# --strict to return an error if there is a warning
15+
- swift-format lint --recursive --strict .
1116
# If the Package.swift file has an error, this command will print it
1217
- swift package describe

0 commit comments

Comments
 (0)