Sha256: 0336a878f9c02fb764debce223fa69d525079cd711957cfd5f2c6820081c62b9

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

name: Ruby based checks

on:
  push:
    branches:
      - 'main'
  pull_request:

concurrency:
  # Pushing new changes to a branch will cancel any in-progress CI runs
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  lint:
    name: Linting
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false
      - name: Remove Gemfile.lock
        run: rm -f Gemfile.lock
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.3'
          bundler-cache: true

      - name: Ruby rubocop
        run: bundle exec rubocop

  test:
    name: Testing
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
        gemfile:
          - gemfiles/Gemfile-rails.6.0.x
          - gemfiles/Gemfile-rails.6.1.x
          - gemfiles/Gemfile-rails.7.0.x
          - gemfiles/Gemfile-rails.7.1.x
          # Uncomment the following line only to ensure compatibility with the
          # upcomming Rails versions, maybe before a release.
          #- gemfiles/Gemfile-rails-edge
        exclude:
          - ruby: '3.1'
            gemfile: gemfiles/Gemfile-rails.6.0.x
          - ruby: '3.2'
            gemfile: gemfiles/Gemfile-rails.6.0.x
          - ruby: '3.3'
            gemfile: gemfiles/Gemfile-rails.6.0.x
          - ruby: '3.3'
            gemfile: gemfiles/Gemfile-rails.6.1.x

    env:
      BUNDLE_GEMFILE: ${{ matrix.gemfile }}

    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Ruby specs
        run: bundle exec rake run_spec:gem

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shakapacker-8.0.2 .github/workflows/ruby.yml
shakapacker-8.0.1 .github/workflows/ruby.yml