Bumps [actions/setup-ruby](https://github.com/actions/setup-ruby) from 1 to 1.1.3. - [Release notes](https://github.com/actions/setup-ruby/releases) - [Commits](https://github.com/actions/setup-ruby/compare/v1...v1.1.3) Signed-off-by: dependabot[bot] <support@github.com>
43 lines
828 B
YAML
43 lines
828 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby: [2.5, 2.6, 2.7]
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Set up Ruby ${{ matrix.ruby }}
|
|
uses: actions/setup-ruby@v1.1.3
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
|
|
- name: Install GEMs
|
|
run: |
|
|
gem install bundler
|
|
bundle config force_ruby_platform true
|
|
bundle config path vendor/bundle
|
|
bundle install --jobs 4 --retry 3
|
|
|
|
- name: rubocop
|
|
run: |
|
|
bundle exec rubocop
|
|
|
|
- name: rspec
|
|
run: |
|
|
bundle exec rspec
|
|
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
continue-on-error: true
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|