Skip to content

Commit

Permalink
use rubocop action
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 29, 2023
1 parent f3a73bb commit 9d439b6
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/foreman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,12 @@ jobs:
rubocop:
name: Rubocop
needs: setup_matrix
runs-on: ubuntu-latest
uses: theforeman/actions/.github/workflows/rubocop.yml@v0
env:
BUNDLE_WITHOUT: assets:console:development:dynflow_sidekiq:ec2:journald:jsonp:libvirt:openid:openstack:ovirt:redis:service:telemetry:vmware
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ fromJson(needs.setup_matrix.outputs.matrix).ruby[0] }}
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop -P
with:
ruby: ${{ fromJson(needs.setup_matrix.outputs.matrix).ruby[0] }}
command: bundle exec rubocop --parallel

tests:
name: "${{ matrix.task }} - Ruby ${{ matrix.ruby }} and Node ${{ matrix.node }} on PostgreSQL ${{ matrix.postgresql }}"
Expand Down

0 comments on commit 9d439b6

Please sign in to comment.