From 9d439b6c092fb1147ceb1d76704fa6465828fda5 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 29 Nov 2023 12:41:01 +0100 Subject: [PATCH] use rubocop action --- .github/workflows/foreman.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/foreman.yml b/.github/workflows/foreman.yml index d21128625c87..6c4e16bb6464 100644 --- a/.github/workflows/foreman.yml +++ b/.github/workflows/foreman.yml @@ -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 }}"