Sha256: c9b239aa2bb5df26fd407aa4820af96ea87ef94ceeabd8061cd90455db9e074c

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:
    services:
      # Label used to access the service container
      postgres:
        # Docker Hub image
        image: postgres
        # Provide the password for postgres
        env:
          POSTGRES_PASSWORD: postgres
        ports:
          - 5432:5432
        # Set health checks to wait until postgres has started
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    runs-on: ubuntu-latest
    name: test (ruby v${{ matrix.ruby }})
    strategy:
      matrix:
        ruby: ["2.7", "3.0", "3.1"]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
    # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
    # change this to (see https://github.com/ruby/setup-ruby#versioning):
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rake

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
postgres-copy-1.7.2 .github/workflows/ruby.yml
postgres-copy-1.7.1 .github/workflows/ruby.yml
postgres-copy-1.7.0 .github/workflows/ruby.yml
postgres-copy-1.6.1 .github/workflows/ruby.yml
postgres-copy-1.6.0 .github/workflows/ruby.yml