Sha256: aa0519aabb8b0f13ba28b877f613616c71e190d038af0c7fbe19438397034524

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

name: Run tests

on:
  pull_request:
  push:
    branches:
      - '**'
    tags-ignore:
      - 'v*'
  schedule:
    - cron: '42 0 1 * *' # on 1st day of every month at 00:42

jobs:
  test:
    name: 'ActiveRecord ${{ matrix.activerecord }} on Ruby ${{ matrix.ruby }}'
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        include:
          - ruby: '2.5'
            activerecord: '4.2'
            gemfile: 'activerecord_4_2.gemfile'
          - ruby: '2.6'
            activerecord: '5.0'
            gemfile: 'activerecord_5_0.gemfile'
          - ruby: '2.6'
            activerecord: '5.1'
            gemfile: 'activerecord_5_1.gemfile'
          - ruby: '2.6'
            activerecord: '5.2'
            gemfile: 'activerecord_5_2.gemfile'
          - ruby: '2.7'
            activerecord: '6.0'
            gemfile: 'activerecord_6_0.gemfile'
          - ruby: '2.7'
            activerecord: '6.1'
            gemfile: 'activerecord_6_1.gemfile'
          - ruby: '3.0'
            activerecord: 'HEAD'
            gemfile: 'activerecord_master.gemfile'
    container:
      image: ruby:${{ matrix.ruby }}
      env:
        CI: true
        BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
          restore-keys: |
            bundle-${{ matrix.ruby }}-${{ hashFiles('**/*.gemspec') }}-${{ hashFiles('**/Gemfile') }}
            bundle-${{ matrix.ruby }}-
      - name: Upgrade Bundler to 2.x (mostly for Rubies older than 2.7)
        run: gem install bundler -v '~> 2.0' -v '!= 2.2.10'
      - name: Bundle install
        run: |
          bundle config path vendor/bundle
          bundle update
      - name: Run RSpec
        run: bundle exec rspec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
after_commit_everywhere-1.1.0 .github/workflows/test.yml
after_commit_everywhere-1.0.0 .github/workflows/test.yml