diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml')
-rw-r--r-- | spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml | 63 |
1 files changed, 56 insertions, 7 deletions
diff --git a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml index 04020c06753..3979c9ae2ac 100644 --- a/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml +++ b/spec/frontend/editor/schema/ci/yaml_tests/negative_tests/cache.yml @@ -1,13 +1,62 @@ -stages: - - prepare +cache-key-files-not-an-array: + script: echo "This job uses a cache." + cache: + key: + files: package.json + paths: + - vendor/ruby + - node_modules + +cache-key-prefix-array: + script: echo "This job uses a cache." + cache: + key: + files: + - Gemfile.lock + prefix: + - binaries-cache-$CI_JOB_NAME + paths: + - binaries/ + +cache-key-with-.: + script: echo "This job uses a cache." + cache: + key: . + paths: + - binaries/ + +cache-key-with-multiple-.: + stage: test + script: echo "This job uses a cache." + cache: + key: .. + paths: + - binaries/ + +cache-key-with-/: + script: echo "This job uses a cache." + cache: + key: binaries-ca/che + paths: + - binaries/ + +cache-path-not-an-array: + script: echo "This job uses a cache." + cache: + key: binaries-cache + paths: binaries/*.apk + +cache-untracked-string: + script: echo "This job uses a cache." + cache: + untracked: 'true' -# invalid cache:when values -when no integer: - stage: prepare +when_integer: + script: echo "This job uses a cache." cache: when: 0 -when must be a reserved word: - stage: prepare +when_not_reserved_keyword: + script: echo "This job uses a cache." cache: when: 'never' |