mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(ci) display lint results
This commit is contained in:
parent
90f679edc0
commit
220f4503ee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user