diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d71672b..551e13a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,9 +4,13 @@ on: [push, pull_request] jobs: test: + name: ${{matrix.ruby}} ${{matrix.gemfile}} runs-on: ${{matrix.os}}-latest continue-on-error: ${{matrix.experimental}} + env: + BUNDLE_GEMFILE: ${{matrix.gemfile}} + strategy: matrix: experimental: [false] @@ -23,6 +27,8 @@ jobs: - 3.2 - 3.3 + gemfile: ["Gemfile"] + include: - os: macos ruby: 3.3 @@ -32,11 +38,11 @@ jobs: - experimental: true os: ubuntu ruby: 2.7 - env: BUNDLE_GEMFILE=gems/rack-v1.rb + gemfile: gems/rack-v1.rb - experimental: true os: ubuntu ruby: 3.2 - env: BUNDLE_GEMFILE=gems/rack-v2.rb + gemfile: gems/rack-v2.rb # enable when rack v3 is supported # - experimental: true # os: ubuntu @@ -45,12 +51,11 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 with: ruby-version: ${{matrix.ruby}} - - - name: Install dependencies - run: ${{matrix.env}} bundle install + bundler-cache: true - name: Run tests - run: ${{matrix.env}} bundle exec rake + run: bundle exec rake