Commit 331057c9 authored by catch's avatar catch
Browse files

fix: #3631912 Fix spell checking only on main and the write lint caches job

By: alexpott
By: godotislate
By: catch
(cherry picked from commit 74c96651)
parent ff5b07e3
Loading
Loading
Loading
Loading
Loading
+3 −1
Changes for .gitlab-ci.yml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -702,6 +702,7 @@ default:
    - if: $CI_PIPELINE_SOURCE == "parent_pipeline"
      when: never
    - if: $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project" && $CI_COMMIT_BRANCH == "main"
    - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_ROOT_NAMESPACE == "project" && $DAILY_TEST == "1" && $CI_COMMIT_BRANCH == "main"
    - if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"
  variables:
    KUBERNETES_CPU_REQUEST: "1"
@@ -1094,7 +1095,8 @@ default:
  script:
    # Exit with an error if any of the lint cache files do not exist.
    - if [ ! -f core/phpstan-tmp/resultCache.php ]; then exit 1; fi
    # cspell only runs on pushes to main and MRs targeting main.
    # cspell only runs on pushes to main, scheduled pipelines on main and MRs
    # targeting main.
    - |
      if [ "$CI_COMMIT_BRANCH" = "main" ] || [ "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" = "main" ]; then
        if [ ! -f core/.cspellcache ]; then exit 1; fi