Skip to content
Snippets Groups Projects
Verified Commit 1161b8d4 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3463108 by catch, smustgrave: Use artifacts to share the eslint and...

Issue #3463108 by catch, smustgrave: Use artifacts to share the eslint and styleint caches from core to MRs

(cherry picked from commit 5374786d)
parent fb464e35
No related branches found
No related tags found
17 merge requests!10663Issue #3495778: Update phpdoc in FileSaveHtaccessLoggingTest,!10451Issue #3472458 by watergate, smustgrave: CKEditor 5 show blocks label is not translated,!103032838547 Fix punctuation rules for inline label suffix colon with CSS only,!10150Issue #3467294 by quietone, nod_, smustgrave, catch, longwave: Change string...,!10130Resolve #3480321 "Second level menu",!9936Issue #3483087: Check the module:// prefix in the translation server path and replace it with the actual module path,!9933Issue #3394728 by ankondrat4: Undefined array key "#prefix" and deprecated function: explode() in Drupal\file\Element\ManagedFile::uploadAjaxCallback(),!9914Issue #3451136 by quietone, gapple, ghost of drupal past: Improve...,!9882Draft: Issue #3481777 In bulk_form ensure the triggering element is the bulk_form button,!9839Issue #3445469 by pooja_sharma, smustgrave: Add additional test coverage for...,!9815Issue #3480025: There is no way to remove entity cache items,!9757Issue #3478869 Add "All" or overview links to parent links,!9752Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9749Issue #3439910 by pooja_sharma, vensires: Fix Toolbar tests that rely on UID1's super user behavior,!9678Issue #3465132 by catch, Spokje, nod_: Show test run time by class in run-tests.sh output,!9578Issue #3304746 by scott_euser, casey, smustgrave: BigPipe cannot handle (GET)...,!9449Issue #3344041: Allow textarea widgets to be used for text (formatted) fields
Pipeline #246305 canceled
Pipeline: drupal

#246306

    ......@@ -115,6 +115,18 @@ default:
    # exist.
    - 'curl --location --output core/.cspellcache "https://git.drupalcode.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/{$CACHE_TARGET}/raw/core/.cspellcache?job=Lint%20cache%20warming" || true'
    .eslint-cache: &eslint-cache
    # Fetch the eslint cache from the artifacts of the latest successful job from
    # the target branch. Allow the job to proceed and pass if the file doesn't
    # exist.
    - 'curl --location --output core/.eslintcache "https://git.drupalcode.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/{$CACHE_TARGET}/raw/core/.eslintcache?job=Lint%20cache%20warming" || true'
    .stylelint-cache: &stylelint-cache
    # Fetch the stylelint cache from the artifacts of the latest successful job from
    # the target branch. Allow the job to proceed and pass if the file doesn't
    # exist.
    - 'curl --location --output core/.stylelintcache "https://git.drupalcode.org/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/{$CACHE_TARGET}/raw/core/.stylelintcache?job=Lint%20cache%20warming" || true'
    .core-spellcheck: &core-spellcheck
    - cd core
    - corepack enable
    ......@@ -271,14 +283,21 @@ default:
    script:
    - *phpstan-cache
    - *cspell-cache
    - *eslint-cache
    - *stylelint-cache
    - composer install
    - vendor/bin/phpstan --version
    - php vendor/bin/phpstan -vvv analyze --configuration=./core/phpstan.neon.dist
    - *core-spellcheck
    - yarn run lint:core-js-passing --cache --cache-strategy content
    - yarn run build:css --check
    - yarn run lint:css --cache --cache-location .stylelintcache --cache-strategy content
    artifacts:
    paths:
    - core/phpstan-tmp/resultCache.php
    - core/.cspellcache
    - core/.eslintcache
    - core/.stylelintcache
    '🧹 PHP Static Analysis (phpstan)':
    <<: [ *default-job-settings-lint ]
    ......@@ -357,11 +376,12 @@ default:
    - when: manual
    allow_failure: true
    script:
    - *eslint-cache
    - cd core
    - corepack enable
    - yarn install
    - yarn run check:ckeditor5
    - yarn run lint:core-js-passing --format gitlab
    - yarn run lint:core-js-passing --cache --cache-strategy content --format gitlab
    artifacts:
    reports:
    codequality: eslint-quality-report.json
    ......@@ -383,11 +403,12 @@ default:
    - when: manual
    allow_failure: true
    script:
    - *stylelint-cache
    - corepack enable
    - cd core
    - yarn install
    - yarn run build:css --check
    - yarn run lint:css --color --custom-formatter=node_modules/stylelint-formatter-gitlab
    - yarn run lint:css --cache --cache-location .stylelintcache --cache-strategy content --color --custom-formatter=node_modules/stylelint-formatter-gitlab
    artifacts:
    reports:
    codequality: stylelint-quality-report.json
    ......
    ......@@ -29,3 +29,9 @@ nightwatch.settings.json
    # Ignore phpstan cache
    phpstan-tmp
    # Ignore eslint cache
    .eslintcache
    # Ignore stylelint cache
    .stylelint-cache
    ......@@ -213,6 +213,7 @@ endtrans
    enoki
    entityviewedit
    errmode
    eslintcache
    etag
    eurozone
    evenodd
    ......@@ -588,6 +589,7 @@ strs
    sttid
    styleguide
    stylelint
    stylelintcache
    stylescombo
    subarrays
    subchild
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment