name: Ruby CI on: pull_request: types: [opened, synchronize, reopened] push: branches: - main jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby-version: [2.7.2, 2.6.6, 2.5.8] steps: - uses: actions/checkout@v2 - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Install dependencies run: bundle install - name: Run tests run: bundle exec rake