Skip to content

Commit dc27ff9

Browse files
committed
Fix rubocop
1 parent cf266cb commit dc27ff9

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/integration-testing.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,20 @@ jobs:
6565
shopt -s dotglob
6666
mv * ../action/
6767
mv ../action/tests/multi-language-repo/* .
68-
- uses: arthurnn/code-scanning-rubocop/rubocop-action@master
68+
- name: Set up Ruby
69+
uses: ruby/setup-ruby@v1
70+
with:
71+
ruby-version: 2.6
72+
- name: Install Code Scanning integration
73+
run: bundle add code-scanning-rubocop --version 0.2.0 --skip-install
74+
- name: Install dependencies
75+
run: bundle install
76+
- name: Rubocop run
77+
run: |
78+
bash -c "
79+
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
80+
[[ $? -ne 2 ]]
81+
"
6982
- uses: ./../action/upload-sarif
7083
with:
7184
sarif_file: rubocop.sarif

0 commit comments

Comments
 (0)