name: Tests on: [push, pull_request] jobs: run-tests: runs-on: ubuntu-latest strategy: matrix: ruby: ['2.6', '2.7', '3.0', '3.1'] fail-fast: false steps: - name: Checkout uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. with: persist-credentials: false - name: Setup Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Run tests run: bundle exec rake test