From e96021303c04ffd05a640549456329fbbe37a32c Mon Sep 17 00:00:00 2001 From: yuncheol-AHN <70050038+yuncheol-AHN@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:59:58 +0900 Subject: [PATCH] Create swiftlint.yml --- .github/workflows/swiftlint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 00000000..3b589414 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,28 @@ +name: swiftlint 🔨 + +on: + pull_request: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + +jobs: + SwiftLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - 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