Sha256: c2cfb3eb81862202e690023b128a34f696640b35276310f9256dbf3788f188bc

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

name: CI

on:
  - push

env:
  BUNDLE_PATH: vendor/bundle

jobs:
  test:
    name: Tests
    runs-on: ubuntu-22.04
    if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
    strategy:
      matrix:
        ruby:
          - '2.7'
          - '3.2'
    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: postgres
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
        ports:
          - 5432:5432
      redis:
        image: redis
        options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
        ports:
          - 6379:6379
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: "Tests and Lint"
        run: bundle exec rake
        env:
          PGHOST: localhost
          PGUSER: postgres
          PGPASSWORD: postgres
          TESTOPTS: "--fail-fast"
        #   MYSQL_HOST: 127.0.0.1
        #   MYSQL_PORT: 3306

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pecorino-0.7.1 .github/workflows/ci.yml