Fix errors in specs but still broken #6
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: | |
branches: | |
- 'main' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
database: [ mysql, postgresql, sqlite3 ] | |
gemfile: [ '7.1.0', '7.0.1', '6.1.3.1', '6.0.3.6', '5.2.5', '5.1.7', '4.2.11.3' ] | |
ruby: [ '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4' ] | |
exclude: | |
- ruby: '3.2' | |
gemfile: '6.1.3.1' | |
- ruby: '3.2' | |
gemfile: '6.0.3.6' | |
- ruby: '3.2' | |
gemfile: '5.2.5' | |
- ruby: '3.2' | |
gemfile: '5.1.7' | |
- ruby: '3.2' | |
gemfile: '4.2.11.3' | |
- ruby: '3.1' | |
gemfile: '6.0.3.6' | |
- ruby: '3.1' | |
gemfile: '5.2.5' | |
- ruby: '3.1' | |
gemfile: '5.1.7' | |
- ruby: '3.1' | |
gemfile: '4.2.11.3' | |
- ruby: '3.0' | |
gemfile: '5.2.5' | |
- ruby: '3.0' | |
gemfile: '5.1.7' | |
- ruby: '3.0' | |
gemfile: '4.2.11.3' | |
- ruby: '2.7' | |
gemfile: '5.2.5' | |
- ruby: '2.7' | |
gemfile: '5.1.7' | |
- ruby: '2.7' | |
gemfile: '4.2.11.3' | |
- ruby: '2.6' | |
gemfile: '7.1.0' | |
- ruby: '2.6' | |
gemfile: '7.0.1' | |
- ruby: '2.5' | |
gemfile: '7.1.0' | |
- ruby: '2.5' | |
gemfile: '7.0.1' | |
- ruby: '2.4' | |
gemfile: '7.1.0' | |
- ruby: '2.4' | |
gemfile: '7.0.1' | |
- ruby: '2.4' | |
gemfile: '6.1.3.1' | |
- ruby: '2.4' | |
gemfile: '6.0.3.6' | |
fail-fast: false | |
runs-on: ubuntu-latest | |
name: ${{ matrix.ruby }} ${{ matrix.database }} rails-${{ matrix.gemfile }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get update | |
- run: sudo apt-get install libpq-dev postgresql-client -y | |
if: matrix.database == 'postgresql' | |
- run: sudo apt-get install libsqlite3-dev -y | |
if: matrix.database == 'sqlite3' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- run: bundle exec rake db:create db:migrate | |
- run: bundle exec rake test | |
env: | |
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile | |
BUNDLE_JOBS: 4 | |
BUNDLE_PATH: vendor/bundle | |
CI: true | |
COVERALLS: true | |
DB: ${{ matrix.database }} | |
MYSQL_PASSWORD: root | |
PGHOST: localhost | |
PGPORT: 5432 | |
PGUSER: postgres | |
RAILS_ENV: test | |
services: | |
postgres: | |
image: postgres:11.5 | |
ports: ["5432:5432"] | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
mysql: | |
image: mysql:5.7 | |
ports: ["3306:3306"] | |
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5 | |
env: | |
MYSQL_ROOT_PASSWORD: root |