From cc16c98bc55b5f95d0db438494f940d7ffdbff12 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Wed, 28 May 2025 19:48:06 +0530 Subject: [PATCH] no strict --- .github/workflows/swiftlint.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml index 3c7b49a1..9e3032cc 100644 --- a/.github/workflows/swiftlint.yml +++ b/.github/workflows/swiftlint.yml @@ -8,7 +8,7 @@ on: - '.swiftlint.yml' - '**/*.swift' jobs: - lint: + swiftlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,7 +20,10 @@ jobs: - name: Lint # based on https://github.com/norio-nomura/action-swiftlint run: | - set -o pipefail - swiftlint --strict | sed -E \ + swiftlint \ + | sed -E \ -e "s/$(pwd|sed 's/\//\\\//g')\///" \ - -e 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/' + -e 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/' \ + | tee swiftlint.log + # fail if there are any errors or warnings + ! grep -Eq '^::(error|warning)' swiftlint.log