Bump ruby/setup-ruby from 1.152.0 to 1.154.0 #93
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: rubocop | |
'on': | |
pull_request: | |
branches: [master] | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47 | |
with: | |
ruby-version: 2.6 | |
- name: Install Code Scanning integration | |
run: bundle add code-scanning-rubocop --version 0.6.1 --skip-install | |
- name: Install dependencies | |
run: bundle install | |
- name: Rubocop run | |
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@v2 | |
with: | |
sarif_file: rubocop.sarif |