Skip to content

Commit de155f6

Browse files
committed
chore(linting): update to SwiftLint action
Signed-off-by: Johan Enell <[email protected]>
1 parent e2f7170 commit de155f6

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/linting.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,11 @@ jobs:
2222
with:
2323
fetch-depth: 1
2424
- uses: ./.github/actions/cancel_workflow
25-
- name: swiftlint
26-
run: |
27-
function stripPWD() {
28-
if ! ${WORKING_DIRECTORY+false};
29-
then
30-
cd - > /dev/null
31-
fi
32-
sed -E "s/$(pwd|sed 's/\//\\\//g')\///"
33-
}
34-
35-
function convertToGitHubActionsLoggingCommands() {
36-
sed -E 's/^(.*):([0-9]+):([0-9]+): (warning|error|[^:]+): (.*)/::\4 file=\1,line=\2,col=\3::\5/'
37-
}
38-
set -o pipefail && yarn swiftlint | stripPWD | convertToGitHubActionsLoggingCommands
25+
- name: GitHub Action for SwiftLint with --strict
26+
uses: norio-nomura/[email protected]
27+
with:
28+
args: --strict
29+
WORKING_DIRECTORY: ios
3930

4031
JavaLint:
4132
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)