Sha256: 04be1363447f0fc9867ee7eb29238d039b2e8bdf29d8938079dfb2ba1cf8fb14

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 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: [2.6, 2.7, '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.3.0 .github/workflows/test-with-postgresql.yml