From 4d7575a44f9a7cf5aa911c483ff99add6ed07ff5 Mon Sep 17 00:00:00 2001 From: Marcin Polak Date: Thu, 5 Oct 2023 13:50:20 +0200 Subject: [PATCH] chore: Add swift-format linting step under github pull request action --- .github/workflows/pull-request.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a99a375..f5e7dc0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,10 +19,10 @@ jobs: swift-version: "5.8" - name: Install swift-format tool run: brew install swift-format - - name: Swift-format formatting for sources directory - run: swift-format format -r ./Sources - - name: Swift-format formatting for tests directory - run: swift-format format -r ./Tests + - 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