.github/workflows/ci.yml in job-iteration-1.3.6 vs .github/workflows/ci.yml in job-iteration-1.4.0
- old
+ new
@@ -4,51 +4,71 @@
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
+ - 6379:6379
strategy:
matrix:
- ruby: ["2.6", "2.7", "3.0", "3.1"]
+ 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
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
+ - 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: 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@v3
+ - 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