Sha256: 8de698fedcb69834ea0d4ddfbe427e656704b2c4b398f152d998762281acc4a1

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

name: Ruby

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [2.4, 2.5, 2.6, 2.7]
        postgres: [10, 11, 12, 13, 14]
    name: Ruby ${{ matrix.ruby }} x Postgres ${{ matrix.postgres }}

    services:
      postgres:
        image: postgres:${{ matrix.postgres }}
        env:
          POSTGRES_DB: junk_drawer_test
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 5432:5432

    steps:
    - uses: actions/checkout@v2

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

    - name: Install dependencies
      run: bundle install

    - name: Run linters
      run: bundle exec rubocop

    - name: Run unit tests
      run: bundle exec rake

    - name: Build gem
      run: bundle exec rake build

Version data entries

1 entries across 1 versions & 1 rubygems

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