Skip to content

Commit

Permalink
move rubocop into foreman.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Nov 27, 2023
1 parent 2c4139e commit b3b6aa3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/foreman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,28 @@ jobs:
id: build_matrix
uses: theforeman/gha-matrix-builder@v0

rubocop:
name: Rubocop
needs: setup_matrix
runs-on: ubuntu-latest
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

tests:
name: "${{ matrix.task }} - Ruby ${{ matrix.ruby }} and Node ${{ matrix.node }} on PostgreSQL ${{ matrix.postgresql }}"
runs-on: ubuntu-latest
needs: setup_matrix
needs:
- setup_matrix
- rubocop
services:
postgres:
image: 'postgres:${{ matrix.postgresql }}'
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/rubocop.yml

This file was deleted.

0 comments on commit b3b6aa3

Please sign in to comment.