.github/workflows/ci.yml
name: build
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 3.0]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test and generate coverage
run: bin/test
- name: Format coverage
if: ${{ matrix.ruby >= 3 }}
run: bin/prepare_coverage
- uses: paambaati/codeclimate-action@v2.7.5
if: ${{ matrix.ruby >= 3 }}
env:
CC_TEST_REPORTER_ID: 9015766fe58e0abd5ab58050ddfc67708e0b11430b3d3999ac17139ffcb4d3e7
with:
debug: true
coverageLocations: coverage/.resultset.json:simplecov