mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fail Unit Tests workflow when SwiftFormat fails. (#353)
This commit is contained in:
@@ -28,6 +28,10 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
brew update && brew bundle && brew upgrade swiftformat
|
brew update && brew bundle && brew upgrade swiftformat
|
||||||
|
|
||||||
|
- name: SwiftFormat
|
||||||
|
run:
|
||||||
|
swiftformat --lint .
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: vendor/bundle
|
path: vendor/bundle
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ struct MediaSourceProxy: Hashable {
|
|||||||
var url: String {
|
var url: String {
|
||||||
underlyingSource.url()
|
underlyingSource.url()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Hashable
|
// MARK: - Hashable
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
The Unit Tests workflow now fails when there are SwiftFormat errors.
|
||||||
Reference in New Issue
Block a user