Fix rubocop
This commit is contained in:
parent
cf266cbf27
commit
dc27ff90bd
1 changed files with 14 additions and 1 deletions
15
.github/workflows/integration-testing.yml
vendored
15
.github/workflows/integration-testing.yml
vendored
|
|
@ -65,7 +65,20 @@ jobs:
|
||||||
shopt -s dotglob
|
shopt -s dotglob
|
||||||
mv * ../action/
|
mv * ../action/
|
||||||
mv ../action/tests/multi-language-repo/* .
|
mv ../action/tests/multi-language-repo/* .
|
||||||
- uses: arthurnn/code-scanning-rubocop/rubocop-action@master
|
- name: Set up Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: 2.6
|
||||||
|
- name: Install Code Scanning integration
|
||||||
|
run: bundle add code-scanning-rubocop --version 0.2.0 --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 ]]
|
||||||
|
"
|
||||||
- uses: ./../action/upload-sarif
|
- uses: ./../action/upload-sarif
|
||||||
with:
|
with:
|
||||||
sarif_file: rubocop.sarif
|
sarif_file: rubocop.sarif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue