Debug bundler version #1385
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: | |
fail-fast: false | |
matrix: | |
# ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"] | |
# gemfile: [rails_5_2, rails_6_0, rails_6_1, rails_7_0, rails_edge] | |
# exclude: | |
# - ruby: "2.6" | |
# gemfile: rails_7_0 | |
# - ruby: "2.6" | |
# gemfile: rails_edge | |
# - ruby: "3.0" | |
# gemfile: rails_5_2 | |
# - ruby: "3.1" | |
# gemfile: rails_5_2 | |
# - ruby: "3.2" | |
# gemfile: rails_5_2 | |
# - 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 | |
ruby: ["head"] | |
gemfile: [rails_edge] | |
env: | |
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby ${{ matrix.ruby }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: false | |
- name: Manually install dependencies with specific bundler version | |
run: bundle _2.4.22_ install --jobs 4 --retry 3 | |
- name: Start MySQL and create DB | |
run: | | |
sudo systemctl start mysql.service | |
mysql -uroot -h localhost -proot -e "CREATE DATABASE job_iteration_test;" | |
- name: Ruby tests | |
run: bundle exec rake test | |
env: | |
REDIS_HOST: localhost | |
REDIS_PORT: ${{ job.services.redis.ports[6379] }} | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- name: Rubocop | |
run: bundle exec rubocop | |
- name: Documentation correctly written | |
run: bundle exec yardoc --no-output --no-save --no-stats --fail-on-warning |