(ci) fail the build when fixable warnings are encountered

This commit is contained in:
Valentyne Stigloher 2024-01-01 19:32:46 +01:00
parent 9543c86975
commit 4872d9b522

View File

@ -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