Skip to content

chore: Update test env gemfiles #11

chore: Update test env gemfiles

chore: Update test env gemfiles #11

Workflow file for this run

name: test
on: [push]
jobs:
rspec:
name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }}
runs-on: ubuntu-22.04
strategy:
matrix:
ruby:
- "3.0"
- "2.7"
- "2.6"
- "2.5"
gemfile:
- rails_5_2.gemfile
- rails_6_0.gemfile
- rails_6_1.gemfile
- rails_7_0.gemfile
exclude:
- ruby: "3.0"
gemfile: rails_5_2.gemfile
- ruby: "2.5"
gemfile: rails_7_0.gemfile
- ruby: "2.6"
gemfile: rails_7_0.gemfile
fail-fast: False
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
BUNDLE_JOBS: 4
BUNDLE_RETRY: 10
BUNDLE_WITHOUT: development
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: |
sudo apt-get install --quiet --yes libsqlite3-dev
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: True
- name: Run rspec
run: bundle exec rspec --color
rubocop:
name: rubocop
runs-on: ubuntu-22.04
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 10
BUNDLE_WITHOUT: development
steps:
- uses: actions/checkout@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0
bundler-cache: True
- run: bundle exec rubocop --parallel --color