(ci) display lint results

This commit is contained in:
Valentyne Stigloher 2023-12-28 22:37:55 +01:00
parent 90f679edc0
commit 220f4503ee

View File

@ -14,10 +14,13 @@ lint:
stage: test
script:
- set -o pipefail
# fail the build if any error is found
- yarn lint --color | tee lint.log | (sed -u 50q; tail -n50)
- yarn add -D eslint-formatter-gitlab
- yarn lint --format gitlab --color | tee lint.log | tail -n 50
# fail the build if any fixable warning is found (mostly formatting)
- '! grep "potentially fixable" lint.log'
artifacts:
reports:
codequality: gl-codequality.json
unit-tests:
stage: test