Skip to content

Add single database configuration instructions #125

Add single database configuration instructions

Add single database configuration instructions #125

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
database: [mysql, postgres, sqlite]
services:
mysql:
image: mysql:8.0.31
env:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 33060:3306
options: --health-cmd "mysql -h localhost -e \"select now()\"" --health-interval 1s --health-timeout 5s --health-retries 30
postgres:
image: postgres:15.1
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- 55432:5432
env:
TARGET_DB: ${{ matrix.database }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Install dependencies
run: bundle install
- name: Setup db
run: |
cd test/dummy
bin/rails db:setup
cd ../../
- name: Run tests
run: bin/test