Sha256: 702962b921be682742c8b163158780489154b3b57cc475d89f1371fb99d85344

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

name: Ruby

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby:
          - '3.1'
          - '3.2'
          - '3.3'
        activerecord:
          - 7.0.0
          - 7.1.0
          - 7.2.0
          - 8.0.0
        strategy:
          - array
          - ltree
        exclude:
          - ruby: '3.1'
            activerecord: 8.0.0

    env:
      BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activerecord_${{ matrix.activerecord }}.gemfile

    services:
      postgres:
        image: postgres:12.4
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: parentry_test
        ports:
          - 5432:5432
        # needed because the postgres container does not provide a healthcheck
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

    steps:
      - uses: actions/checkout@v4

      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Install PostgreSQL client
        run: |
          sudo apt-get -yqq install libpq-dev

      - name: Run tests with RSpec
        uses: paambaati/codeclimate-action@v2.7.5
        env:
          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
          STRATEGY: ${{ matrix.strategy }}
        with:
          coverageCommand: bundle exec rspec
          debug: false

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parentry-1.8.0 .github/workflows/ruby.yml