byroot/activerecord-typedstore

View on GitHub
.github/workflows/ruby.yml

Summary

Maintainability
Test Coverage
name: Ruby

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    name: ${{ matrix.ruby }} / Rails ${{ matrix.rails }} / TZ ${{ matrix.timezone_aware }}
    strategy:
      fail-fast: false
      matrix:
        ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
        rails: ['6.1', '7.0', '7.1', 'edge']
        timezone_aware: [0, 1]
        exclude:
          - ruby: '3.2'
            rails: '6.1'
          - ruby: '3.3'
            rails: '6.1'
          - ruby: '2.7'
            rails: 'edge'
          - ruby: '3.0'
            rails: 'edge'
    env:
      BUNDLE_GEMFILE: gemfiles/Gemfile.ar-${{ matrix.rails }}
      TIMEZONE_AWARE: ${{ matrix.timezone_aware }}
      POSTGRES: 1
      MYSQL: 1
      POSTGRES_JSON: 1
    steps:
      - name: Check out code
        uses: actions/checkout@v3
      - name: Set up Ruby ${{ matrix.ruby }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Ruby Tests
        run: bundle exec rake