Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3101671
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3101671
Commits
5cb6498e
Commit
5cb6498e
authored
1 year ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3420013
by longwave, catch: Only run CSS and JS lint jobs if files have changed
parent
05134017
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+25
-11
25 additions, 11 deletions
.gitlab-ci.yml
with
25 additions
and
11 deletions
.gitlab-ci.yml
+
25
−
11
View file @
5cb6498e
...
...
@@ -375,36 +375,50 @@ default:
codequality
:
phpcs-quality-report.json
'
🧹
JavaScript
linting
(eslint)'
:
<<
:
[
*with-yarn
,
*default-job-settings-lint
]
<<
:
[
*with-yarn
]
stage
:
🪄 Lint
variables
:
KUBERNETES_CPU_REQUEST
:
"
2"
# Run on push, or on MRs if CSS files have changed, or manually.
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
changes
:
-
core/package.json
-
core/yarn.lock
-
"
**/*.js"
-
"
**/*.yml"
-
when
:
manual
allow_failure
:
true
script
:
-
yarn --cwd=./core run -s check:ckeditor5
-
yarn --cwd=./core run -s lint:core-js-passing --format gitlab
artifacts
:
reports
:
codequality
:
eslint-quality-report.json
'
🧹
CSS
linting
(stylelint)'
:
<<
:
[
*with-yarn
,
*default-job-settings-lint
]
<<
:
[
*with-yarn
]
stage
:
🪄 Lint
variables
:
KUBERNETES_CPU_REQUEST
:
"
2"
# Run on push, or on MRs if CSS files have changed, or manually.
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
changes
:
-
core/package.json
-
core/yarn.lock
-
"
**/*.css"
-
when
:
manual
allow_failure
:
true
script
:
-
yarn run --cwd=./core build:css --check
-
yarn run --cwd=./core lint:css --color --custom-formatter=node_modules/stylelint-formatter-gitlab
artifacts
:
reports
:
codequality
:
stylelint-quality-report.json
'
🧹
Compilation
check'
:
<<
:
[
*with-yarn
,
*default-job-settings-lint
]
stage
:
🪄 Lint
variables
:
KUBERNETES_CPU_REQUEST
:
"
2"
script
:
-
yarn run --cwd=./core build:css --check
-
cd core && yarn run -s check:ckeditor5
'
📔
Spell-checking'
:
<<
:
[
*with-yarn
,
*default-job-settings-lint
]
stage
:
🪄 Lint
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment