Fix autogeneration #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration tests | |
on: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- ruby-version: '2.7' | |
rails-version: 'rails-version' | |
- ruby-version: '3.0' | |
rails-version: 'rails6-version' | |
- ruby-version: '3.2' | |
rails-version: 'rails7-version' | |
- ruby-version: '3.3' | |
rails-version: 'rails8-version' | |
defaults: | |
run: | |
working-directory: ${{ matrix.rails-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install | |
- name: Setup database | |
run: bundle exec rails db:setup | |
- name: Run checks | |
run: bundle exec database_consistency | |
- name: Run auto-fix generations | |
run: bundle exec database_consistency -f | |
- name: Run to-do generations | |
run: bundle exec database_consistency -g |