functionalize feedcheck_checks error handling #52
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: Rubocop Linting | |
on: | |
push: | |
paths: | |
- '**.rb' | |
- .github/workflows/rubocop.yml | |
- Gemfile | |
- Gemfile.lock | |
pull_request: | |
paths: | |
- '**.rb' | |
- .github/workflows/rubocop.yml | |
- Gemfile | |
- Gemfile.lock | |
workflow_dispatch: | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Ruby | |
uses: ruby/[email protected] | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install | |
- name: Rubocop generate sarif file | |
run: | | |
bash -c " | |
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif | |
[[ $? -ne 2 ]] | |
" | |
- name: Upload Sarif output | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: rubocop.sarif | |
- name: Rubocop pass/fail | |
run: | | |
bash -c " | |
bundle exec rubocop | |
[[ $? -ne 2 ]] | |
" |