name: CI on: [push, pull_request] jobs: tests: strategy: matrix: rails-version: - "6.1" - "7.0" - "7.1" - "main" include: - rails-version: "6.1" ruby-version: "2.5" - rails-version: "7.0" ruby-version: "2.7" - rails-version: "7.1" ruby-version: "2.7" - rails-version: "main" ruby-version: "3.2" env: RAILS_VERSION: "${{ matrix.rails-version }}" name: ${{ format('Tests (Ruby {0}, Rails {1})', matrix.ruby-version, matrix.rails-version) }} runs-on: ubuntu-latest continue-on-error: true steps: - uses: actions/checkout@v1 - name: Install Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run tests run: | bin/test test/**/*_test.rb - name: Fail when generated changes are not checked-in run: | git update-index --refresh git diff-index --quiet HEAD --