From c46166b45a05f751ff833f41f2aa66326aab4774 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Thu, 13 Feb 2025 16:23:37 -0600 Subject: [PATCH] Check swift formatting in CI --- .github/workflows/swiftfmt.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/swiftfmt.yml diff --git a/.github/workflows/swiftfmt.yml b/.github/workflows/swiftfmt.yml new file mode 100644 index 0000000..510ad97 --- /dev/null +++ b/.github/workflows/swiftfmt.yml @@ -0,0 +1,21 @@ +name: Swift format +on: + push: + branches: + - main + pull_request: + paths: + - '.github/workflows/swiftfmt.yml' + - '**.swift' +jobs: + swiftfmt: + name: Run swift format + runs-on: macos-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + show-progress: false + + - name: Check formating + run: swiftformat --lint . --reporter github-actions-log