.github/workflows/test.yml in rack-simple_user_agent-0.6.0 vs .github/workflows/test.yml in rack-simple_user_agent-1.0.0

- old
+ new

@@ -1,17 +1,22 @@ name: Test -on: [push] + +on: + push: + branches: + - main + pull_request: + jobs: - build: + test: strategy: matrix: - ruby: [2.4, 2.5, 2.6, 2.7] + ruby: [2.5, 2.6, 2.7, '3.0', '3.1'] runs-on: ubuntu-latest - name: Test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Ruby - uses: actions/setup-ruby@v1 + uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - run: bundle install + bundler-cache: true - run: bundle exec rake