Sha256: 0c9fad2dbec56c3e946a6b91947c101038989f1929db6f4a3d3882021b8d0f6b

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]
  schedule:
    - cron:  '30 5 * * *'

jobs:
  test:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby-version: ['2.6', '2.7', '3.0', jruby, truffleruby]
        gemfile: [rails-5.2.x, rails-6.0.x, rails-6.1.x]
        exclude:
          # ruby 3 is not compatible with rails < 6
          - ruby-version: '3.0'
            gemfile: rails-5.2.x
    env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
      BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile

    name: test (ruby ${{ matrix.ruby-version }}, ${{ matrix.gemfile }})

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Set up Ruby
      # Using ruby/setup-ruby@v1 will automatically get bug fixes and new Ruby
      # versions for ruby/setup-ruby (see
      # https://github.com/ruby/setup-ruby#versioning).
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true # runs 'bundle install' and caches installed gems automatically
    - name: Run tests
      run: bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
frikandel-3.0.0 .github/workflows/ci.yml