30 lines
720 B
YAML
30 lines
720 B
YAML
name: Main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
test:
|
|
name: 'CI Tests'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
|
|
ruby: [jruby, truffleruby, 2.5, 2.6, 2.7, '3.0', head]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- run: bundle exec rspec
|
|
- uses: codecov/codecov-action@v1
|
|
with:
|
|
name: ${{ matrix.ruby }}
|
|
file: ./coverage/coverage.xml
|