Bump activerecord from 7.0.6 to 7.1.0 #50
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Ruby ${{ matrix.ruby }} | Gemfile ${{ matrix.gemfile }} | |
continue-on-error: ${{ matrix.gemfile == 'rails_edge' }} | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
strategy: | |
matrix: | |
ruby: ["2.7", "3.0", "3.1", "3.2"] | |
gemfile: [rails_6_0, rails_6_1, rails_7_0, rails_edge] | |
exclude: | |
- ruby: "3.1" | |
gemfile: rails_6_0 | |
- ruby: "3.2" | |
gemfile: rails_6_0 | |
- ruby: "3.2" | |
gemfile: rails_6_1 | |
include: | |
- ruby: head | |
gemfile: rails_edge | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Start MySQL and create DB | |
run: | | |
sudo systemctl start mysql.service | |
mysql -uroot -h localhost -proot -e "CREATE DATABASE job_iteration_test;" | |
- name: Rubocop | |
run: bundle exec rubocop | |
- name: Ruby tests | |
run: bundle exec rake test | |
env: | |
REDIS_HOST: localhost | |
REDIS_PORT: ${{ job.services.redis.ports[6379] }} | |
- name: Documentation correctly written | |
run: bundle exec yardoc --no-output --no-save --no-stats --fail-on-warning |