fixup! Convert from TravisCI to Github Actions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
schedule: | |
- cron: '0 1 * * 0' # every Sunday at 1am | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
ruby: [2.2, 2.3, 2.4, 2.5, 2.6.2, head, jruby, jruby-head] | |
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || endsWith(matrix.ruby, 'jruby') }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler: 1.17 | |
bundler-cache: true | |
# HACK: Continue to use bundler <2 because of Ruby v2.2 support. Once the | |
# lowest dependency is Ruby v2.3 we can consider upgrading to Bundler 2.x. | |
# @see https://docs.travis-ci.com/user/languages/ruby/#bundler-20 | |
# - run: gem install bundler -v '< 2' | |
#- run: bundle install | |
- run: bundle exec rake | |
coverage: | |
needs: [ test ] | |
name: coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.2' | |
#bundler-cache: true | |
# HACK: Continue to use bundler <2 because of Ruby v2.2 support. Once the | |
# lowest dependency is Ruby v2.3 we can consider upgrading to Bundler 2.x. | |
# @see https://docs.travis-ci.com/user/languages/ruby/#bundler-20 | |
- run: gem install bundler -v '< 2' | |
- run: bundle install | |
- run: bundle exec rake | |
env: | |
CUCUMBER_PUBLISH_TOKEN: ${{ secrets.CUCUMBER_PUBLISH_TOKEN }} | |
- uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
${{ github.workspace }}/coverage/lcov/*.lcov:lcov | |
debug: true |