name: Test on: push: branches: [production, dev] pull_request: branches: [production, dev] jobs: test: name: Test strategy: matrix: os: [ubuntu-latest, macos-latest] ruby: ['2.5', '2.6', '2.7', '3.0'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@master - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - run: | gem install bundler bundle install bundle exec rspec bash <(curl -s https://codecov.io/bash) env: CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}