name: tests on: [push, pull_request] permissions: contents: read jobs: build_and_test: runs-on: ubuntu-latest strategy: matrix: ruby-version: ['2.7', '3.0', '3.2'] steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - run: bundle exec rubocop - run: bundle exec rspec --format documentation - uses: actions/upload-artifact@v3 with: name: coverage path: coverage/ retention-days: 1