100 instead of 1k iterations speeds up specs significantly #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') }}-v2 | |
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') }}-v2 | |
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 --parallel |