36 lines
977 B
YAML
36 lines
977 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: ${{ matrix.ruby-version == 'head' }}
|
|
strategy:
|
|
matrix:
|
|
ruby-version: ['2.6', '2.7', '3.0', '3.1', 'head']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby-version }}
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
- name: Install apt packages
|
|
run: sudo apt update && sudo apt install -yy grep binutils-multiarch
|
|
- name: Run tests
|
|
run: bundle exec rake
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
- name: Publish code coverage
|
|
if: ${{ success() && env.CC_TEST_REPORTER_ID }}
|
|
uses: paambaati/codeclimate-action@v2.7.5
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|