.github/workflows/ruby.yml in epubcheck-ruby-4.2.2.0 vs .github/workflows/ruby.yml in epubcheck-ruby-4.2.4.0

- old
+ new

@@ -1,20 +1,25 @@ name: Ruby -on: [push] +on: [push, pull_request] jobs: build: + strategy: + matrix: + ruby: [2.4, 2.5, 2.6, 2.7, jruby] + platform: [ubuntu-latest, macos-latest, windows-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v1 - - name: Set up Ruby 2.6 - uses: actions/setup-ruby@v1 + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: eregon/use-ruby-action@master with: - ruby-version: 2.6.x - - name: Build and test with Rake + ruby-version: ${{ matrix.ruby }} + - name: Build run: | gem install bundler bundle install --jobs 4 --retry 3 - bundle exec rake + - name: Test + run: bundle exec rake test