Only run tests if ruby files change

This commit is contained in:
Thor77 2020-07-02 19:16:18 +02:00
parent f6e3a95489
commit 83ba31b844
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,14 @@ rails spec:
- docker
stage: test
image: $CI_REGISTRY_IMAGE/test/commits:$CI_COMMIT_SHA
only:
changes:
- '*.rb'
- 'Gemfile'
- 'Gemfile.lock'
except:
variables:
- $SKIP_TEST
script:
- cd /app
- bundle exec rails db:migrate