From eeff5ad72223dbab7da44fb918d12293162de284 Mon Sep 17 00:00:00 2001 From: Marcin Polak Date: Thu, 5 Oct 2023 13:40:24 +0200 Subject: [PATCH] chore: Add swift-format linting step under github pull request action --- .github/workflows/pull-request.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9cc6bc9..f5e7dc0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -17,6 +17,12 @@ jobs: - uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf with: swift-version: "5.8" + - name: Install swift-format tool + run: brew install swift-format + - name: Swift-format linting Sources directory + run: swift-format lint -s -r ./Sources + - name: Swift-format linting Tests directory + run: swift-format lint -s -r ./Tests - name: Build run: swift build -v - name: Run unit tests