Sha256: eb50a15e4508aa0be9e61e494d50467e36825305f956b329768810a3f2de82c2

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 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: build

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        gemfile: ["rails-7.0.x"]
        ruby: [3.1]
        include:
          - gemfile: rails-7.0.x
            ruby: '3.0'
          - gemfile: rails-7.0.x
            ruby: '2.7'
          - gemfile: rails-6.1.x
            ruby: '3.1'
          - gemfile: rails-6.1.x
            ruby: '3.0'
          - gemfile: rails-6.1.x
            ruby: 2.7
          - gemfile: rails-6.1.x
            ruby: 2.6
          - gemfile: rails-6.0.x
            ruby: 2.7
          - gemfile: rails-6.0.x
            ruby: 2.6
          - gemfile: rails-5.2.x
            ruby: 2.6

    env:
      BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.${{ matrix.gemfile }}
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Start MySQL
      run: sudo systemctl start mysql.service
    - name: Rspec test suite
      run: bundle exec rspec
    - name: Kill panolint and other rubocop files found in vendor folder. (breaks rubocop)
      run:  find vendor/bundle -name .rubocop.yml | xargs rm
      if: matrix.gemfile == 'rails-7.0.x' && matrix.ruby == '3.1'
    - name: Rubocop
      run: bundle exec rubocop lib spec
      if: matrix.gemfile == 'rails-7.0.x' && matrix.ruby == '3.1'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-mysql-uuid-column-0.6.0 .github/workflows/build.yml