From 8d04edc5ee894b38b53169d88279e291ebeb4b29 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Wed, 18 Dec 2024 11:30:12 +0000 Subject: [PATCH] Update RuboCop workflow Similar changes as https://github.com/mysociety/foi-for-councils/pull/626/commits/574f365e84e43ae28eed17a08a48cc343ec9a853 --- .github/workflows/rubocop.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 1db2466..db4f55e 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -4,17 +4,23 @@ on: [pull_request] jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest + env: + BUNDLE_ONLY: rubocop steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 2.6 + - run: | + gem install securerandom -v 0.3.2 + gem install activesupport -v 7.1.5.1 + - name: Run RuboCop linter - uses: reviewdog/action-rubocop@v1 + uses: reviewdog/action-rubocop@v2 with: github_token: ${{ secrets.github_token }} reporter: github-pr-review