diff --git a/.github/workflows/swiftLint.yml b/.github/workflows/swiftLint.yml new file mode 100644 index 0000000..cd508a0 --- /dev/null +++ b/.github/workflows/swiftLint.yml @@ -0,0 +1,30 @@ +name: SwiftLint + +on: + push: +# pull_request: + paths: + - '**/*.swift' + +jobs: + SwiftLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: GitHub Action for SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 +# +# - name: GitHub Action for SwiftLint with --strict +# uses: norio-nomura/action-swiftlint@3.2.1 +# with: +# args: --strict +# +# - name: GitHub Action for SwiftLint (Only files changed in the PR) +# uses: norio-nomura/action-swiftlint@3.2.1 +# env: +# DIFF_BASE: ${{ github.base_ref }} +# +# - name: GitHub Action for SwiftLint (Different working directory) +# uses: norio-nomura/action-swiftlint@3.2.1 +# env: +# WORKING_DIRECTORY: Source