name: Ruby specs on: push: branches: [ main ] pull_request: branches: [ main ] jobs: test: name: Tests runs-on: ubuntu-latest strategy: matrix: ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1'] experimental: [false] include: - ruby-version: 'head' experimental: true - ruby-version: 'jruby-9.3' experimental: true continue-on-error: ${{ matrix.experimental }} steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Run specs run: JRUBY_OPTS="--dev --debug" bundle exec rake spec - name: Coveralls Parallel uses: coverallsapp/github-action@master with: github-token: ${{ secrets.github_token }} flag-name: run-${{ matrix.ruby-version }} parallel: true coverage: name: Coverage needs: test runs-on: ubuntu-latest steps: - name: Coveralls Finished uses: coverallsapp/github-action@master with: github-token: ${{ secrets.github_token }} parallel-finished: true