Hi @mihkel,
I also had this same problem running shared runners on GitlabCI, but now, it seems Gitlab is caching CI shared runners. Here’s the cache excerpt from my .gitlab-ci.yml
config file:
.cache_bundler: &cache_bundler
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- cache/bundler/
.setup_test_env: &setup_test_env
before_script:
- bundle install --path=cache/bundler --without production --jobs $(nproc) "${FLAGS[@]}"
main_app_spec:
<<: *cache_bundler
<<: *setup_test_env
script:
- bundle exec rspec