Sha256: c4ea4c957c5a3974c6bfd7b2ab2c585db41fd42be171234248122f1058faa1aa

Contents?: true

Size: 795 Bytes

Versions: 3

Compression:

Stored size: 795 Bytes

Contents

name: RSpec on Postgres

on:
  push: {}

jobs:
  rspec:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.7', '3.0', '3.1', '3.2']

    env:
      TEST_DATABASE_URL: postgres://test_user:test_user@localhost:5432/friendly_fk_test
      RAILS_ENV: test

    services:
      database:
        image: postgres:12-alpine
        env:
          POSTGRES_DB: friendly_fk_test
          POSTGRES_USER: test_user
          POSTGRES_PASSWORD: test_user
        ports:
          - 5432:5432

    steps:
      - name: Checkout
        uses: actions/checkout@v2

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

      - name: Run RSpec
        run: bundle exec rspec spec

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
friendly_fk-1.0.23 .github/workflows/rspec-pg.yml
friendly_fk-1.0.22 .github/workflows/rspec-pg.yml
friendly_fk-1.0.21 .github/workflows/rspec-pg.yml