Show number of migrations added
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 48s
Run unit tests / check-licenses (pull_request) Successful in 1m17s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m10s
Run unit tests / build-static-assets (pull_request) Has been skipped
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 48s
Run unit tests / check-licenses (pull_request) Successful in 1m17s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m10s
Run unit tests / build-static-assets (pull_request) Has been skipped
This commit is contained in:
parent
644f35c57f
commit
139502c69a
@ -45,13 +45,12 @@ jobs:
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-migration-files.outputs.all_changed_files }}
|
||||
run: |
|
||||
echo ${#ALL_CHANGED_FILES[@]}
|
||||
for file in ${ALL_CHANGED_FILES}; do
|
||||
echo "$file was changed"
|
||||
done
|
||||
- run: |
|
||||
git fetch origin ${{ github.event.pull_request.base.sha }}
|
||||
migrations_added=$(git diff ${{ github.event.pull_request.base.sha }} --name-only db/migrate/ | wc -l)
|
||||
echo "Migrations added: $migrations_added"
|
||||
exit 1
|
||||
bundle exec rake db:schema:load db:migrate:status db:migrate:redo
|
||||
git diff --exit-code db/schema.rb
|
||||
bundle exec rspec
|
||||
|
Loading…
x
Reference in New Issue
Block a user