Ensure spec only runs on branches and tags
This commit is contained in:
parent
2055f120ca
commit
7285558c62
|
|
@ -11,12 +11,14 @@ rails spec:
|
|||
stage: test
|
||||
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
|
||||
rules:
|
||||
- if: $SKIP_TEST
|
||||
when: never
|
||||
- if: $CI_PIPELINE_SOURCE != "push"
|
||||
when: never
|
||||
- changes:
|
||||
- '**/*.rb'
|
||||
- 'Gemfile'
|
||||
- 'Gemfile.lock'
|
||||
- if: $SKIP_TEST
|
||||
when: never
|
||||
script:
|
||||
- cd /app
|
||||
- bundle exec rails db:migrate
|
||||
|
|
|
|||
Loading…
Reference in New Issue