Skip to content

[types/ci] simplecov + rspec-retry #422

[types/ci] simplecov + rspec-retry

[types/ci] simplecov + rspec-retry #422

Workflow file for this run

name: Build (Linter + TypeCheck + RSpec)
on: [push]
jobs:
test-previous:
name: '(OS: ${{ matrix.os }}) Ruby ${{ matrix.ruby_version }}'
strategy:
fail-fast: false
matrix:
ruby_version: ['3.1', '3.2']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
BUNDLE_GEMFILE: github_ci/ruby${{ matrix.ruby_version }}.gemfile
BUNDLE_RETRY: 3
BUNDLE_JOBS: 4
BUNDLE_FORCE_RUBY_PLATFORM: 1
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: (Test) RSpec
run: bundle exec rake rspec
test-mainstream:
name: '(OS: ${{ matrix.os }}) Ruby ${{ matrix.ruby_version }}'
strategy:
fail-fast: false
matrix:
ruby_version: ['3.3']
os: [ubuntu-latest]
env:
BUNDLE_RETRY: 3
BUNDLE_JOBS: 4
BUNDLE_FORCE_RUBY_PLATFORM: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: (Linter) Rubocop
run: bundle exec rake rubocop
- name: (TypeCheck) Steep
run: bundle exec steep check --jobs 10
continue-on-error: true
- name: (Test) RSpec
run: bundle exec rake rspec