Allow authorized_interactions endpoint to handle Collections (#39287)
#1
This file contains hidden or 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: Ruby Linting | |
| on: | |
| merge_group: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'stable-*' | |
| paths: | |
| - 'Gemfile*' | |
| - '.rubocop*.yml' | |
| - '.ruby-version' | |
| - 'bin/rubocop' | |
| - '**/*.rb' | |
| - '**/*.rake' | |
| - '.github/workflows/lint-ruby.yml' | |
| pull_request: | |
| paths: | |
| - 'Gemfile*' | |
| - '.rubocop*.yml' | |
| - '.ruby-version' | |
| - 'bin/rubocop' | |
| - '**/*.rb' | |
| - '**/*.rake' | |
| - '.github/workflows/lint-ruby.yml' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| env: | |
| BUNDLE_ONLY: development | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1 | |
| with: | |
| bundler-cache: true | |
| - name: Run rubocop | |
| run: bin/rubocop --format github | |
| - name: Run brakeman | |
| if: always() # Run both checks, even if the first failed | |
| run: bin/brakeman |