From 1c2e938ec74473a823b572a05c3cb93bcbfbffac Mon Sep 17 00:00:00 2001 From: Sergey Kemenov <126358486+SKemenov@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:46:04 +0300 Subject: [PATCH] Create swiftLint.yml --- .github/workflows/swiftLint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/swiftLint.yml 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