Sha256: ae46de6b6f82a624b2c43742d42c57737fe89726cb6ee78b06c5d80d7a4e6ae0

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

name: Test

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    services:
      postgres:
        image: postgres:11.5
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: ahnnotate_test
        ports:
        - 5432/tcp
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

    strategy:
      fail-fast: false
      matrix:
        gemfile:
          - gemfiles/rails60.gemfile
          - gemfiles/rails52.gemfile
          - gemfiles/rails51.gemfile
          - gemfiles/rails50.gemfile
          - gemfiles/rails42.gemfile
          - gemfiles/rails41.gemfile
        include:
          - gemfile: gemfiles/rails60.gemfile
            ruby: 2.6.x
          - gemfile: gemfiles/rails52.gemfile
            ruby: 2.5.x
          - gemfile: gemfiles/rails51.gemfile
            ruby: 2.5.x
          - gemfile: gemfiles/rails50.gemfile
            ruby: 2.5.x
          - gemfile: gemfiles/rails42.gemfile
            ruby: 2.4.x
          - gemfile: gemfiles/rails41.gemfile
            ruby: 2.3.x

    steps:
    - uses: actions/checkout@v1
    - name: Set up Ruby
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install build dependencies
      run: |
        sudo apt-get install -y sqlite3 libsqlite3-dev libpq-dev
    - name: Install dependencies
      env:
        BUNDLE_GEMFILE: ${{ matrix.gemfile }}
      run: |
        gem install bundler -v 1.17.3
        bundle install --jobs 4 --retry 3
    - name: Test
      env:
        BUNDLE_GEMFILE: ${{ matrix.gemfile }}
        AHNNOTATE_POSTGRES_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/ahnnotate_test
      run: |
        bundle exec rake

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ahnnotate-0.5.1 .github/workflows/ruby.yml
ahnnotate-0.5.0 .github/workflows/ruby.yml