Don't run caching steps on CI when not master or PR
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
2020-12-03 14:56:11 +01:00
parent 022094ce51
commit 7ca91cf882

View File

@@ -12,6 +12,9 @@ steps:
restore: true restore: true
mount: mount:
- vendor - vendor
when:
branch:
- master
- name: rspec - name: rspec
image: guildeducation/rails:2.7.1-12.19.0 image: guildeducation/rails:2.7.1-12.19.0
commands: commands:
@@ -30,6 +33,9 @@ steps:
rebuild: true rebuild: true
mount: mount:
- vendor - vendor
when:
branch:
- master
volumes: volumes:
- name: cache - name: cache