Sha256: 9601aae85460421ad50b66ff6b10755489148cb758d7bf690a41b6d9fc913681

Contents?: true

Size: 1.82 KB

Versions: 3

Compression:

Stored size: 1.82 KB

Contents

name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - "*"

jobs:
  build:
    name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}, PostgreSQL ${{ matrix.postgres }}

    strategy:
      fail-fast: true
      matrix:
        ruby:
          - "3.0"
        rails:
          - "7.0"
        postgres:
          - 10
          - 11
          - 12
          - 13
          - 14
        include: # for backward-compatibility
          - ruby: "2.7"
            rails: "5.2"
            postgres: 10
          - ruby: "3.0"
            rails: "6.1"
            postgres: 10

    runs-on: ubuntu-latest

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

    env:
      RAILS_VERSION: ${{ matrix.rails }}
      POSTGRES_USER: "postgres"
      POSTGRES_PASSWORD: "postgres"

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

      - name: Install Ruby ${{ matrix.ruby }}
        uses: ruby/setup-ruby@v1.61.1
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Install dependent libraries
        run: sudo apt-get install libpq-dev

      - name: Generate lockfile
        run: bundle lock

      - name: Cache dependencies
        uses: actions/cache@v1
        with:
          path: vendor/bundle
          key: bundle-${{ hashFiles('Gemfile.lock') }}

      - name: Set up PGTrunk
        run: bin/setup

      - name: Check code style
        run: bundle exec rubocop
        continue-on-error: false

      - name: Run tests
        run: bundle exec rake --trace
        continue-on-error: false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_trunk-0.1.2 .github/workflows/ci.yml
pg_trunk-0.1.1 .github/workflows/ci.yml
pg_trunk-0.1.0 .github/workflows/ci.yml