Allow to exclude all has_many
and has_one
associations by default
#24
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: Tests | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- 'v*' | |
pull_request: | |
jobs: | |
test: | |
name: Ruby ${{ matrix.ruby }}, ActiveRecord ${{ matrix.activerecord }}, ${{ matrix.database }} | |
continue-on-error: ${{ matrix.ruby == 'head' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- ruby: "head" | |
activerecord: "head" | |
database: sqlite | |
- ruby: "3.3" | |
activerecord: "7.1" | |
database: postgresql | |
- ruby: "3.3" | |
activerecord: "7.1" | |
database: mysql | |
- ruby: "3.3" | |
activerecord: "7.1" | |
database: sqlite | |
- ruby: "3.2" | |
activerecord: "7.0" | |
database: sqlite | |
- ruby: "3.1" | |
activerecord: "6.1" | |
database: sqlite | |
- ruby: "3.0" | |
activerecord: "6.0" | |
database: sqlite | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:16 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
mysql: | |
image: mysql:8.4 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: evil_seed_test | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
env: | |
CI: true | |
ACTIVERECORD_VERSION: "${{ matrix.activerecord }}" | |
DB: "${{ matrix.database }}" | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Run tests | |
run: bundle exec rake |