build(deps-dev): bump rspec-rails from 6.1.0 to 6.1.1 #2535
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: Ruby lint CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 3.2.2 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Run static code analysis using rubocop | |
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 |