.github/workflows/ruby.yml in twog-0.3.5 vs .github/workflows/ruby.yml in twog-0.3.6
- old
+ new
@@ -1,20 +1,23 @@
name: Ruby
on: [push]
jobs:
- build:
+ test:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ ruby-version: [3.0.x, 2.7.x, 2.6.x]
+
steps:
- - uses: actions/checkout@v1
- - name: Set up Ruby 2.7
+ - uses: actions/checkout@v2
+ - name: Set up Ruby ${{ matrix.ruby-version }}
uses: actions/setup-ruby@v1
with:
- ruby-version: 2.7
- - name: Build and test with Rspec
- run: |
- gem install bundler
- bundle install --jobs 4 --retry 3
- bundle exec rspec
+ ruby-version: ${{ matrix.ruby-version }}
+ - name: Install dependencies
+ run: bundle install
+ - name: Run tests
+ run: bundle exec rspec