Skip to content
Snippets Groups Projects
Commit 26c6621e authored by catch's avatar catch
Browse files

Issue #3420013 by longwave, catch: Only run CSS and JS lint jobs if files have changed

(cherry picked from commit 5cb6498e)
parent 73c1387c
Branches
Tags
9 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...
Pipeline #92979 passed with warnings
Pipeline: drupal

#93012

    Pipeline: drupal

    #93006

      Pipeline: drupal

      #92999

        +1
        ...@@ -375,36 +375,50 @@ default: ...@@ -375,36 +375,50 @@ default:
        codequality: phpcs-quality-report.json codequality: phpcs-quality-report.json
        '🧹 JavaScript linting (eslint)': '🧹 JavaScript linting (eslint)':
        <<: [ *with-yarn, *default-job-settings-lint ] <<: [ *with-yarn ]
        stage: 🪄 Lint stage: 🪄 Lint
        variables: variables:
        KUBERNETES_CPU_REQUEST: "2" 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: script:
        - yarn --cwd=./core run -s check:ckeditor5
        - yarn --cwd=./core run -s lint:core-js-passing --format gitlab - yarn --cwd=./core run -s lint:core-js-passing --format gitlab
        artifacts: artifacts:
        reports: reports:
        codequality: eslint-quality-report.json codequality: eslint-quality-report.json
        '🧹 CSS linting (stylelint)': '🧹 CSS linting (stylelint)':
        <<: [ *with-yarn, *default-job-settings-lint ] <<: [ *with-yarn ]
        stage: 🪄 Lint stage: 🪄 Lint
        variables: variables:
        KUBERNETES_CPU_REQUEST: "2" 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: script:
        - yarn run --cwd=./core build:css --check
        - yarn run --cwd=./core lint:css --color --custom-formatter=node_modules/stylelint-formatter-gitlab - yarn run --cwd=./core lint:css --color --custom-formatter=node_modules/stylelint-formatter-gitlab
        artifacts: artifacts:
        reports: reports:
        codequality: stylelint-quality-report.json 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': '📔 Spell-checking':
        <<: [ *with-yarn, *default-job-settings-lint ] <<: [ *with-yarn, *default-job-settings-lint ]
        stage: 🪄 Lint stage: 🪄 Lint
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment