Sha256: 6cb7f9dbdce47cf21113fb1b5e5daa2069ba0dd35690da6fb5a488f97dab2771

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

name: PostgreSQL
on: [pull_request]
jobs:
  Test-With-PostgreSQL:
    runs-on: ubuntu-latest
    container: ruby:${{ matrix.ruby }}
    strategy:
      fail-fast: false
      matrix:
        active_record: [6.1.7.2, 6.0.6, 5.2.8.1]
        ruby: ['3.0', 3.1, 3.2]
        exclude:
          - active_record: 5.2.8.1
            ruby: '3.0'
          - active_record: 5.2.8.1
            ruby: 3.1
          - active_record: 5.2.8.1
            ruby: 3.2
    env:
      ACTIVE_RECORD_VERSION: ${{ matrix.active_record }}
      DATABASE_ADAPTER: postgresql
      INSTALL_PG_GEM: true
      RAILS_ENV: test
    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: postgres
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 5432:5432
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Update bundler
        run: gem update bundler # Use the latest bundler
      - name: Bundle dependencies
        run: bundle install
      - name: Run tests
        run: bundle exec rake test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-cte-0.4.0 .github/workflows/test-with-postgresql.yml