32 lines
611 B
YAML
32 lines
611 B
YAML
name: Ruby
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Ruby ${{ matrix.ruby }}
|
|
strategy:
|
|
matrix:
|
|
ruby:
|
|
- '3.2.0'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- name: Test and report the code coverage
|
|
uses: paambaati/codeclimate-action@v3.2.0
|
|
env:
|
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
with:
|
|
coverageCommand: bundle exec rspec
|