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
|
stage: test
|
||||||
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
|
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
|
||||||
rules:
|
rules:
|
||||||
|
- if: $SKIP_TEST
|
||||||
|
when: never
|
||||||
|
- if: $CI_PIPELINE_SOURCE != "push"
|
||||||
|
when: never
|
||||||
- changes:
|
- changes:
|
||||||
- '**/*.rb'
|
- '**/*.rb'
|
||||||
- 'Gemfile'
|
- 'Gemfile'
|
||||||
- 'Gemfile.lock'
|
- 'Gemfile.lock'
|
||||||
- if: $SKIP_TEST
|
|
||||||
when: never
|
|
||||||
script:
|
script:
|
||||||
- cd /app
|
- cd /app
|
||||||
- bundle exec rails db:migrate
|
- bundle exec rails db:migrate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue