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: