mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
ci: Check snippets in coding style
To avoid having the coding style get out of sync with the actual coding style in the future, run eslint on the individual snippets when either the guide or the linter config change. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>
This commit is contained in:
parent
b496a9cf9f
commit
a6d35fdd2a
2 changed files with 58 additions and 0 deletions
|
|
@ -149,6 +149,21 @@ eslint:
|
|||
junit: ${LINT_LOG}
|
||||
when: always
|
||||
|
||||
eslint-doc:
|
||||
extends:
|
||||
- .fdo.distribution-image@fedora
|
||||
- .gnome-shell.fedora
|
||||
stage: review
|
||||
script:
|
||||
- export NODE_PATH=$(npm root -g)
|
||||
- ./.gitlab-ci/eslint-coding-style.sh
|
||||
rules:
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
changes:
|
||||
- HACKING.md
|
||||
- .eslintrc.yml
|
||||
- lint/*
|
||||
|
||||
potfile_c_check:
|
||||
extends:
|
||||
- .fdo.distribution-image@fedora
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue