Fail Unit Tests workflow when SwiftFormat fails. (#353)
This commit is contained in:
4
.github/workflows/unit_tests.yml
vendored
4
.github/workflows/unit_tests.yml
vendored
@@ -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:
|
||||
|
||||
@@ -31,7 +31,6 @@ struct MediaSourceProxy: Hashable {
|
||||
var url: String {
|
||||
underlyingSource.url()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - Hashable
|
||||
|
||||
1
changelog.d/pr-353.build
Normal file
1
changelog.d/pr-353.build
Normal file
@@ -0,0 +1 @@
|
||||
The Unit Tests workflow now fails when there are SwiftFormat errors.
|
||||
Reference in New Issue
Block a user