Sha256: 1c3ba926dcc25bce52480da0ae57b712ef3b21fca365e482408923330cb89305

Contents?: true

Size: 1.61 KB

Versions: 3

Compression:

Stored size: 1.61 KB

Contents

name: CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-20.04
    services:
      postgres:
        image: postgres:9.5
        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:5.7
        env:
          MYSQL_ALLOW_EMPTY_PASSWORD: yes
        ports:
          - 3306:3306
        options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
    strategy:
      fail-fast: false
      matrix:
        ruby: [2.7, '3.0', 3.1, 3.2]
        gemfile: ['rails60', 'rails61', 'rails70']
        database: ['postgresql', 'mysql']
        database_config: ['default', 'multi']

    name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}, ${{ matrix.database }}

    env:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      DATABASE: ${{ matrix.database }}
      DATABASE_CONFIG: ${{ matrix.database_config }}
      BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

    steps:
    - uses: actions/checkout@v3
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Prepare test
      run: |
        cd spec/dummy
        BUNDLE_GEMFILE=../../${{ env.BUNDLE_GEMFILE }} RAILS_ENV=test bundle exec rake db:create db:migrate
        cd ../..
    - name: Run test
      run: |
        bundle exec rspec
    - name: Show log
      run: |
        cat spec/dummy/log/test.log
      if: ${{ failure() }}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job_master-3.1.0 .github/workflows/ci.yml
delayed_job_master-3.0.1 .github/workflows/ci.yml
delayed_job_master-3.0.0 .github/workflows/ci.yml