Skip to content

Commit e92c659

Browse files
committed
Add CI step to validate migrations against empty production database
1 parent 10d7795 commit e92c659

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ jobs:
9797
- name: Run style checks
9898
run: bundle exec rubocop
9999

100+
- name: Validate database migrations
101+
env:
102+
RAILS_ENV: production
103+
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
104+
run: rails --trace db:drop db:create db:migrate
105+
100106
- name: Upload artifacts
101107
if: ${{ always() }}
102108
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)