mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 21:46:22 -04:00
(ci) fail the build when fixable warnings are encountered
This commit is contained in:
parent
9543c86975
commit
4872d9b522
@ -13,7 +13,11 @@ before_script:
|
||||
lint:
|
||||
stage: test
|
||||
script:
|
||||
- yarn lint
|
||||
- set -o pipefail
|
||||
# fail the build if any error is found
|
||||
- yarn lint --color | tee lint.log | (sed -u 50q; tail -n50)
|
||||
# fail the build if any fixable warning is found (mostly formatting)
|
||||
- '! grep "potentially fixable" lint.log'
|
||||
|
||||
unit-tests:
|
||||
stage: test
|
||||
|
Loading…
x
Reference in New Issue
Block a user