mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
Make sure all linters run even if some of them fails
This commit is contained in:
@@ -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 ))
|
||||
|
||||
Reference in New Issue
Block a user