Make sure all linters run even if some of them fails

This commit is contained in:
David Rodríguez
2025-11-03 14:06:55 +01:00
parent 8e5fac9fb3
commit 43da235d15

View File

@@ -4,7 +4,7 @@
# Runs linters and pipes their output to reviewdog so it annotates a pull request with the issues found
#
set -eo pipefail
set -o pipefail
echo "::group:: Running prettier with reviewdog 🐶 ..."
@@ -23,6 +23,8 @@ echo "::group:: Running prettier with reviewdog 🐶 ..."
-level="error" \
-tee
prettier=$?
echo "::group:: Running rubocop with reviewdog 🐶 ..."
bundle exec rubocop \
@@ -34,3 +36,7 @@ bundle exec rubocop \
-level="error" \
-fail-level="any" \
-tee
rubocop=$?
! (( prettier || rubocop ))