.github/workflows/tcr.yml in tcr-0.3.0 vs .github/workflows/tcr.yml in tcr-0.4.0
- old
+ new
@@ -5,36 +5,30 @@
branches: [master]
pull_request:
jobs:
test:
- name: Test
+ name: "Test: Ruby ${{ matrix.ruby }}"
runs-on: ubuntu-latest
-
strategy:
+ fail-fast: false
matrix:
ruby:
- - "2.0.0"
- - "2.1.9"
- - "2.2.10"
- - "2.3.7"
- - "2.4.4"
- - "2.5.1"
- - "2.7.3"
- - "3.0.1"
-
+ - "2.7"
+ - "3.0"
+ - "3.1"
+ - "3.2"
steps:
- uses: actions/checkout@v2
-
- - name: Initial setup
+ - name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
-
- - name: Install dependencies
- run: bundle install
-
- - name: Run tests
+ # runs 'bundle install' and caches installed gems automatically
+ bundler-cache: true
+ - name: Ruby Version
+ run: ruby --version
+ - name: Run Tests
run: bundle exec rspec
testall:
if: ${{ always() }}
runs-on: ubuntu-latest