Skip to content

ci: fix tests not using the right Gemfile #71

ci: fix tests not using the right Gemfile

ci: fix tests not using the right Gemfile #71

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
name: >-
Ruby ${{ matrix.ruby }} (${{ matrix.gemfile }})
env:
CI: true
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
runs-on: ${{ matrix.os }}
if: |
!( contains(github.event.pull_request.title, '[ci skip]')
|| contains(github.event.pull_request.title, '[skip ci]'))
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
ruby:
- 2.7
- '3.0'
- '3.1'
- '3.2'
- head
gemfile:
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_6.1.gemfile
- gemfiles/rails_7.0.gemfile
- gemfiles/doorkeeper_master.gemfile
steps:
- name: Repo checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
timeout-minutes: 10
run: bundle exec rake spec