.github/workflows/ci.yml
name: build
on: [push, pull_request]
jobs:
ci:
name: run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: 'Update Rubygems & Bundler'
run: 'gem update --system --no-document && gem update bundler --no-document'
- name: 'Install Bundler 2'
run: 'gem install bundler -v "2.0.1" --force'
- run: 'bundle install'
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v2.7.5
with:
coverageCommand: 'bundle exec rake test'
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}