Only run tests if ruby files change
This commit is contained in:
parent
f6e3a95489
commit
83ba31b844
|
|
@ -21,6 +21,14 @@ rails spec:
|
||||||
- docker
|
- docker
|
||||||
stage: test
|
stage: test
|
||||||
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
|
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- '*.rb'
|
||||||
|
- 'Gemfile'
|
||||||
|
- 'Gemfile.lock'
|
||||||
|
except:
|
||||||
|
variables:
|
||||||
|
- $SKIP_TEST
|
||||||
script:
|
script:
|
||||||
- cd /app
|
- cd /app
|
||||||
- bundle exec rails db:migrate
|
- bundle exec rails db:migrate
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue