Skip to content

Run tests with mysql:8.0 and drop support for Ruby < 3.0 #24

Run tests with mysql:8.0 and drop support for Ruby < 3.0

Run tests with mysql:8.0 and drop support for Ruby < 3.0 #24

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '2.6'
- '2.7'
- '3.0'
name: Run test with Ruby ${{ matrix.ruby }}
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: barbeque_root
MYSQL_USER: barbeque
MYSQL_PASSWORD: barbeque
MYSQL_DATABASE: barbeque
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
RAILS_ENV: test
DATABASE_URL: mysql2://barbeque:[email protected]:3306/barbeque
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bin/rails db:setup
- run: bin/rails zeitwerk:check
- run: bundle exec rspec