From 5eb68194c7463aef874c3b871507ed1bcf06ef4f Mon Sep 17 00:00:00 2001 From: Otavio Cordeiro Date: Wed, 14 Jan 2026 12:33:17 -0300 Subject: [PATCH] Add SwiftFormat Action --- .github/workflows/swiftformat.yml | 20 +++++++++++++++++++ .../workflows/{swift.yml => swiftlint.yml} | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/swiftformat.yml rename .github/workflows/{swift.yml => swiftlint.yml} (94%) diff --git a/.github/workflows/swiftformat.yml b/.github/workflows/swiftformat.yml new file mode 100644 index 0000000..e865a0a --- /dev/null +++ b/.github/workflows/swiftformat.yml @@ -0,0 +1,20 @@ +name: SwiftFormat Check + +on: + pull_request: + branches: [ main ] + +jobs: + swiftformat: + name: Code Formatting Check + runs-on: macos-26 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install swiftformat + run: brew install swiftformat + + - name: Check code formatting + run: swiftformat --lint . diff --git a/.github/workflows/swift.yml b/.github/workflows/swiftlint.yml similarity index 94% rename from .github/workflows/swift.yml rename to .github/workflows/swiftlint.yml index af781e1..209bd21 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swiftlint.yml @@ -1,4 +1,4 @@ -name: SwiftLint +name: SwiftLint Check on: pull_request: