Use req.params[] instead of req[], which was removed in rack 3.1.0 #91
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: Code Style Checks | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'master' | |
- '*-maintenance' | |
- '*-dev' | |
tags: | |
- '!*' # Do not execute on tags | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
rubocop: | |
name: Rubocop | |
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')" | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- 2.7 | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install --jobs 3 --retry 3 | |
- name: Run Rubocop | |
run: bundle exec rubocop -DESP |