[PEDSP-0000] Update rack from 2.2.5 -> 2.2.9 #19
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: | |
branches: [$default-branch] | |
pull_request: | |
jobs: | |
test: | |
name: tests / ruby | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
# Set health checks to wait until redis has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
strategy: | |
matrix: | |
ruby-version: ['2.7.7', '3.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/[email protected] | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
cache-version: 1 | |
- name: Install dependencies | |
run: bundle install --jobs 4 | |
- name: Run tests | |
run: bundle exec rake | |
rubocop: | |
name: linters / rubocop | |
runs-on: ubuntu-latest | |
env: | |
RUBY_VERSION: 2.7.7 | |
steps: | |
- name: Codebase Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
bundler-cache: true | |
cache-version: 1 | |
- name: rubocop | |
uses: reviewdog/[email protected] | |
with: | |
rubocop_version: gemfile | |
rubocop_extensions: rubocop-performance rubocop-rake rubocop-i18n | |
reporter: github-check | |
fail_on_error: true |