diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 381cdd605..5eb22c051 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -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: diff --git a/ElementX/Sources/Services/Media/MediaSourceProxy.swift b/ElementX/Sources/Services/Media/MediaSourceProxy.swift index c675873a2..771b46c1e 100644 --- a/ElementX/Sources/Services/Media/MediaSourceProxy.swift +++ b/ElementX/Sources/Services/Media/MediaSourceProxy.swift @@ -31,7 +31,6 @@ struct MediaSourceProxy: Hashable { var url: String { underlyingSource.url() } - } // MARK: - Hashable diff --git a/changelog.d/pr-353.build b/changelog.d/pr-353.build new file mode 100644 index 000000000..2697711a5 --- /dev/null +++ b/changelog.d/pr-353.build @@ -0,0 +1 @@ +The Unit Tests workflow now fails when there are SwiftFormat errors. \ No newline at end of file