Skip to content

Merge pull request #93 from coord-e/mysql-8.0 #28

Merge pull request #93 from coord-e/mysql-8.0

Merge pull request #93 from coord-e/mysql-8.0 #28

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
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