Sha256: 7864b63719d8895ebc519760c234159b4aad552f184ee0abc8fde9757ba2fa46

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evil-seed-0.6.0 .github/workflows/test.yml