Sha256: 8db56cc41131bdf40cf071afb1650488d1cee854e8fd04d58f4d920c70881289

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

name: Tests

on:
  pull_request:
    branches:
      - development
    paths-ignore:
      - 'README.md'
  push:
    branches:
      - development
    paths-ignore:
      - 'README.md'

jobs:
  unit_tests:
    name: Unit Tests
    # Homemade support for [ci skip] no longer needed
    # https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
    # if: "contains(github.event.commits[0].message, '[ci skip]') == false"
    strategy:
      fail-fast: false
      matrix:
        ruby:
          - "3.1"
          - "3.2"
          - "3.3"
        gemfile:
          - gemfiles/rails_7_0.gemfile
          - gemfiles/rails_7_1.gemfile
          - gemfiles/rails_7_2.gemfile
          - gemfiles/rails_8_0.gemfile
        allow_failures:
          - false
        exclude:
          - ruby: "3.1"
            gemfile: gemfiles/rails_8_0.gemfile
        include:
          - ruby: ruby-head
            gemfile: gemfiles/rails_8_0.gemfile
            allow_failures: true
    env:
      BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
      ALLOW_FAILURES: "${{ matrix.allow_failures }}"
    runs-on: ubuntu-latest
    continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - name: Test
        run: bundle exec rake test || $ALLOW_FAILURES

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-like-7.0.1 .github/workflows/tests.yaml