From 0e3f26cf5478242c1d622a5f64d222a261f86814 Mon Sep 17 00:00:00 2001 From: Dheeraj Rathore Date: Tue, 5 Nov 2024 17:36:16 +0530 Subject: [PATCH] Create swiftlint.yml --- .github/workflows/swiftlint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..53502ce --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,29 @@ +name: SwiftLint + +on: + push: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + pull_request: + paths: + - '.github/workflows/swiftlint.yml' + - '.swiftlint.yml' + - '**/*.swift' + +jobs: + swiftlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: GitHub Action for SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 + + - name: Upload SwiftLint results + uses: actions/upload-artifact@v3 + if: always() + with: + name: swiftlint-results + path: swiftlint.result.json