Ensure spec only runs on branches and tags

This commit is contained in:
Thor77 2022-06-10 19:32:41 +02:00
parent 2055f120ca
commit 7285558c62
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 4 additions and 2 deletions

View File

@ -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