Skip to content

Support multi-result #66

Support multi-result

Support multi-result #66

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} MySQL ${{ matrix.mysql }}
strategy:
matrix:
ruby:
- '3.3.0'
mysql:
- '5.7'
- '8.0'
services:
mysql:
image: mysql:${{ matrix.mysql }}
env:
MYSQL_VERSION: ${{ matrix.mysql }}
MYSQL_DATABASE: trilogy_test
MYSQL_USER: test_user
MYSQL_PASS: test_pass
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v4
- name: Set up MySQL
run: |
mysql --user=root --host=127.0.0.1 --execute 'CREATE DATABASE test'
mysql --user=root --host=127.0.0.1 < ${{ github.workspace }}/test/mysql/native_user.sql
mysql --user=root --host=127.0.0.1 < ${{ github.workspace }}/test/mysql/caching_sha2_user.sql
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake