Skip to content

Create CODEOWNERS

Create CODEOWNERS #104

Workflow file for this run

name: Ruby
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Start Redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: 5
- name: Run Rspec
run: bundle exec rspec
- if: ${{ matrix.ruby == '3.2' }}
name: Upload coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage
- name: Run Rubocop
run: bundle exec rubocop --config .rubocop/ruby-${{ matrix.ruby }}.yml
coverage:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download coverage report
uses: actions/download-artifact@v3
with:
name: coverage-report
path: coverage
- name: Check coverage
uses: vigetlabs/simplecov-check@1.0
with:
minimum_coverage: 100
coverage_path: coverage/.last_run.json