From 1ce218055341754f7d25f7e43b6d6539267327a8 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/megalinter.yml b/.github/workflows/megalinter.yml index ca9884fe..635111f1 100644 --- a/.github/workflows/megalinter.yml +++ b/.github/workflows/megalinter.yml @@ -19,9 +19,14 @@ jobs: id: ml uses: megalinter/megalinter@v6 env: - 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()