.github/workflows/ruby.yml in graphql-metrics-5.0.0 vs .github/workflows/ruby.yml in graphql-metrics-5.0.1
- old
+ new
@@ -1,20 +1,20 @@
-name: Ruby
-
-on: [push]
-
+name: Tests
+on: [push, pull_request]
jobs:
- build:
-
- runs-on: ubuntu-latest
-
+ test:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest]
+ ruby: ['2.7', '3.0', '3.1', '3.2']
+ gemfile: ['graphql_1.13', 'graphql_2.0']
+ runs-on: ${{ matrix.os }}
+ env:
+ BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- - uses: actions/checkout@v1
- - name: Set up Ruby 2.6
- uses: actions/setup-ruby@v1
+ - uses: actions/checkout@v3
+ - uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6.x
- - name: Build and test with Rake
- run: |
- gem install bundler
- bundle install --jobs 4 --retry 3
- bundle exec rake test
+ ruby-version: ${{ matrix.ruby }}
+ bundler-cache: true
+ - run: bundle exec rake