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