From cb7b371863233104f2a1bdfb922b63ad635db68e Mon Sep 17 00:00:00 2001 From: louisjoecodes Date: Fri, 18 Oct 2024 14:55:41 +0100 Subject: [PATCH] feat: add swiftformat to workflow CI --- .github/workflows/format.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..1bb21a6 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,18 @@ +name: 🧼 SwiftFormat + +on: + pull_request: + types: [opened, synchronize] + +jobs: + swiftformat: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install SwiftFormat + run: brew install swiftformat + + - name: Run SwiftFormat in Strict Mode + run: swiftformat . --strict