diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7883a9..8b6b6ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,19 +1,20 @@ name: Test - -on: - push: - branches: - - master - pull_request: - branches: - - master +on: [push, pull_request] jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + gemfile: + - rails_6 + - rails_6.1 + - rails_7 + - rails_7.1 + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 - - run: bundle install - - run: bundle exec appraisal install - - run: bundle exec appraisal rake + - run: "bundle install" + - run: "bundle exec rake"