Modernize CI with Ruby 4.0, removing Rails 6.1 and 7.0, Ruby 3.0 and 3.1 #398
Workflow file for this run
This file contains hidden or 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: Test upcoming versions | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: {} | |
| jobs: | |
| spec: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ruby: 3.4 | |
| gemfile: rails_edge | |
| - ruby: head | |
| gemfile: rails_edge | |
| env: | |
| BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Chromedriver | |
| uses: nanasess/setup-chromedriver@v2 | |
| with: | |
| # Optional: do not specify to match Chrome's version | |
| chromedriver-version: '125.0.6422.141' | |
| - name: Setup Ruby and install gems | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Migrate DB | |
| run: bundle exec rake app:db:migrate | |
| - name: Prepare DB | |
| run: bundle exec rake app:db:test:prepare | |
| - name: Install ImageMagick | |
| run: sudo apt-get update && sudo apt-get install -y imagemagick | |
| - name: Run spec | |
| run: bundle exec rspec |