Skip to content

run rubocop in its own test run #15

run rubocop in its own test run

run rubocop in its own test run #15

Workflow file for this run

name: CI
on: [push]
jobs:
test:
strategy:
matrix:
ruby:
- 3.0
- 3.1
- 3.2
- head
redis-version:
- 5
- 6
- 7
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Set up Redis ${{ matrix.redis-version }}
uses: supercharge/redis-github-action@1.5.0
with:
redis-version: ${{ matrix.redis-version }}
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.redis-version }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: bundle install
run: |
gem install bundler
bundle config path vendor/bundle
bundle install -j $(getconf _NPROCESSORS_ONLN) --retry 3
- name: Run RSspec
run: bundle exec rspec --format documentation
- name: Run Sorbet Typechecks
run: bundle exec spoom tc
lint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-3.2-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: bundle install
run: |
gem install bundler
bundle config path vendor/bundle
bundle install -j $(getconf _NPROCESSORS_ONLN) --retry 3
- name: Run Rubocop
run: bundle exec rubocop