Sha256: 1e992b68bc3e41acba79ec17100472d7f8a2ffcb59eda7b158a0954ab1b0157a

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 KB

Contents

name: RSpec tests

on:
  pull_request:
  schedule:
    - cron: '0 0 * * 0'

jobs:
  tests:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby-version:
          - '2.7'
          - '3.0'
          - 'head'
        activerecord-gemfile:
          - 'ar_5_latest'
          - 'ar_6_latest'
          - 'ar_7_latest'
        ar_lazy_preload-gemfile:
          - 'ar_lazy_preload_0.6.1'
          - 'ar_lazy_preload_master'
        exclude:
          - ruby-version: 'head'
            activerecord-gemfile: 'ar_5_latest'

          - ruby-version: 'head'
            activerecord-gemfile: 'ar_5_latest'

          - ruby-version: '3.0'
            activerecord-gemfile: 'ar_5_latest'

          - ruby-version: '3.0'
            activerecord-gemfile: 'ar_5_latest'

          - activerecord-gemfile: 'ar_7_latest'
            ar_lazy_preload-gemfile: 'ar_lazy_preload_0.6.1'

          - activerecord-gemfile: 'ar_5_latest'
            ar_lazy_preload-gemfile: 'ar_lazy_preload_master'

    env:
      ACTIVERECORD_GEMFILE: ${{ matrix.activerecord-gemfile }}
      AR_LAZY_PRELOAD_GEMFILE: ${{ matrix.ar_lazy_preload-gemfile }}

    steps:
      - uses: actions/checkout@v3

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

      - name: Install dependencies
        run: bundle install

      - name: Run Core tests
        run: bundle exec rspec spec/n1_loader_spec.rb

      - name: Run ActiveRecord tests
        run: bundle exec rspec spec/n1_loader_spec.rb spec/activerecord_spec.rb

      - name: Run ArLazyPreload tests
        run: bundle exec rspec spec/n1_loader_spec.rb spec/activerecord_spec.rb spec/ar_lazy_preload_spec.rb

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
n1_loader-1.7.2 .github/workflows/tests.yml
n1_loader-1.7.1 .github/workflows/tests.yml
n1_loader-1.7.0 .github/workflows/tests.yml
n1_loader-1.6.6 .github/workflows/tests.yml
n1_loader-1.6.5 .github/workflows/tests.yml
n1_loader-1.6.4 .github/workflows/tests.yml
n1_loader-1.6.3 .github/workflows/tests.yml