From 339a824e66302857628dbc72b79cc416bed12f5a Mon Sep 17 00:00:00 2001 From: Goncalo-FradeIOHK Date: Fri, 19 Aug 2022 08:49:55 +0100 Subject: [PATCH] ci: [ATL-1640] add swiftlint Megalinter doesnt work well with swiftlint. This issue has been reported in the ticket below. While a solution is not provided we will go forward with having this swiftlint action and disable the megalinter swiftlint process. https://github.com/oxsecurity/megalinter/issues/440 --- .github/workflows/megalinter.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/megalinter.yml b/.github/workflows/megalinter.yml index ca9884fe..ad1a1f27 100644 --- a/.github/workflows/megalinter.yml +++ b/.github/workflows/megalinter.yml @@ -22,6 +22,14 @@ jobs: VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} DISABLE: COPYPASTE,SPELL GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DISABLE_LINTERS: SWIFT_SWIFTLINT + + - name: SwiftLint + uses: norio-nomura/action-swiftlint@3.2.1 + with: + args: --strict + env: + DIFF_BASE: ${{ github.base_ref }} - name: Archive production artifacts if: success() || failure()