Sha256: fb0ee44f081dbccc06ea8a4bb59e72ffe35f49e04cbc4dfa06cfc55e440d0894

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

name: CI

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

jobs:
  tests:
    name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        ruby: ["3.0", "3.1", "3.2", "3.3", "3.4.0-preview2"]
        rails: ["7.0", "7.1", "7.2", "8.0.0"]
        continue-on-error: [false]

    services:
      postgres:
        image: postgres:14
        env:
          POSTGRES_USER: postgres
          POSTGRES_HOST_AUTH_METHOD: trust
        ports:
          - 5432:5432
        # Set health checks to wait until postgres has started
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    env:
      POSTGRES_USER: postgres

    steps:
      - uses: actions/checkout@v3

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

      - name: Setup environment
        run: bin/setup

      - name: Run tests
        run: bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fx-0.9.0 .github/workflows/ci.yml