Fail Unit Tests workflow when SwiftFormat fails. (#353)

This commit is contained in:
Doug 2022-12-06 10:26:50 +00:00 committed by GitHub
parent 3c893ba342
commit dcedb3fb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,10 @@ jobs:
- name: Brew bundle
run:
brew update && brew bundle && brew upgrade swiftformat
- name: SwiftFormat
run:
swiftformat --lint .
- uses: actions/cache@v3
with:

View File

@ -31,7 +31,6 @@ struct MediaSourceProxy: Hashable {
var url: String {
underlyingSource.url()
}
}
// MARK: - Hashable

1
changelog.d/pr-353.build Normal file
View File

@ -0,0 +1 @@
The Unit Tests workflow now fails when there are SwiftFormat errors.