From d9ee75225fff48c962cf1868732e80e2ed1f61d6 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Wed, 22 Nov 2023 16:19:00 +0100 Subject: [PATCH] ci: :green_heart: hopefully fix rubocop build --- .forgejo/workflows/rubocop.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.forgejo/workflows/rubocop.yml b/.forgejo/workflows/rubocop.yml index a36913d..9f90b9e 100644 --- a/.forgejo/workflows/rubocop.yml +++ b/.forgejo/workflows/rubocop.yml @@ -8,21 +8,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Ruby 2.7 - uses: https://github.com/ruby/setup-ruby@v1 - with: - ruby-version: 2.7 - - name: Cache gems - uses: actions/cache@v1 - with: - path: vendor/bundle - key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-rubocop- - - name: Install gems - run: | - bundle config path vendor/bundle - bundle config set without 'default doc job cable storage ujs test db' - bundle install --jobs 4 --retry 3 - name: Run RuboCop - run: bundle exec rubocop --parallel \ No newline at end of file + uses: docker://pipelinecomponents/rubocop:latest + with: + cmd: rubocop -P -E . \ No newline at end of file