Sha256: 225d1e06d1d7752b5a5d80a24b74165fe28366f0821c37c1b2267bc460031480

Contents?: true

Size: 932 Bytes

Versions: 1

Compression:

Stored size: 932 Bytes

Contents

name: CI Tests

on:
  push:
    branches: "main"
  pull_request:
    branches: "*"

jobs:
  test:
    name: "Ruby ${{ matrix.ruby }}, Rails ${{ matrix.gemfile }}"

    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        gemfile:
          - "6.0"
          - "6.1"
          - "7.0"
          - "7.1"
        ruby:
          - "2.7.6"
          - "3.0.4"
          - "3.1.2"
          - "3.2.2"

    env:
      BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.gemfile }}.gemfile
      RAILS_ENV: test

    steps:
      - uses: actions/checkout@v2

      - name: "Install Ruby ${{ matrix.ruby  }}"
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: "Reset app database"
        run: |
          bundle exec rake dummy:db:drop
          bundle exec rake dummy:db:setup

      - name: "Run tests"
        run: bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
clearance-2.6.2 .github/workflows/tests.yml