diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-06 13:21:44 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-06 13:21:44 +0000 |
| commit | d38b0a19c204aface71ae6c39581346a8ad83887 (patch) | |
| tree | 3ca2d83e3aed851a0f345a8d2460f3e0f7ee3442 /.gitlab-ci.yml | |
| parent | 453da23613b8061f62290982693af0a2183c1aac (diff) | |
add stylelint to core, fixes #4965
Closes #4965
Merge request studip/studip!3728
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02e79e7..9cb7271 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,7 @@ stages: - checks - analyse - test + - cache - packaging - release @@ -183,24 +184,20 @@ lint-css: STYLELINT_CODE_QUALITY_REPORT: $REPORT_DIR/stylelint-codequality.json interruptible: true cache: - - key: "$CI_JOB_NAME_SLUG:CI_COMMIT_REF_SLUG" + - key: "CI_COMMIT_REF_SLUG-lint-css" paths: - $CACHE_LOCATION + policy: pull-push + when: always before_script: + - *mkdir-caches - *mkdir-reports - npm install - --no-save --no-audit --no-fund - --loglevel=error - stylelint@^14.9.1 - stylelint-config-standard@^26.0.0 - stylelint-formatter-gitlab script: - - npx - stylelint + - npm run lint-css -- --cache --cache-location $CACHE_LOCATION --custom-formatter=node_modules/stylelint-formatter-gitlab --output-file $STYLELINT_CODE_QUALITY_REPORT - resources/assets/stylesheets artifacts: reports: codequality: $STYLELINT_CODE_QUALITY_REPORT |
