Skip to content

Add details to error #251

Add details to error

Add details to error #251

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
ruby:
- 3.0
- 3.1
- 3.2
- 3.3
gemfile:
- gemfiles/rails_6_1.gemfile
- gemfiles/rails_7_0.gemfile
- gemfiles/rails_7_1.gemfile
include:
- ruby: 2.7
gemfile: gemfiles/ruby_2.7_rails_6_0.gemfile
- ruby: 2.7
gemfile: gemfiles/ruby_2.7_rails_6_1.gemfile
- ruby: 2.7
gemfile: gemfiles/ruby_2.7_rails_7_0.gemfile
- ruby: 2.7
gemfile: gemfiles/ruby_2.7_rails_7_1.gemfile
env:
PERCONA_DB_USER: root
PERCONA_DB_PASSWORD: root
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: "Add Percona GPG key"
run: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9334A25F8507EFA5
- name: "Add Percona APT repository"
run: echo "deb http://repo.percona.com/apt `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list
- run: sudo apt-get update -qq
- run: sudo apt-get install percona-toolkit
- name: Start MySQL server
run: sudo systemctl start mysql.service
- run: bin/setup
- run: bundle exec rake
lint:
strategy:
fail-fast: false
env:
PERCONA_DB_USER: root
PERCONA_DB_PASSWORD: root
BUNDLE_GEMFILE: gemfiles/ruby_2.7_rails_6_0.gemfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop --parallel