From 1f9cc71bf37e49b6511e6135fbe1e7b3972294cf Mon Sep 17 00:00:00 2001 From: Syphax bouazzouni Date: Wed, 31 Jan 2024 13:21:28 +0100 Subject: [PATCH] Update rubocop.yml --- .github/workflows/rubocop.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 3426df027..c96eb5bb3 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -1,27 +1,24 @@ name: RuboCop linting -on: - push: - pull_request: - types: [ opened, reopened ] +on: [push, pull_request] + +permissions: + contents: read jobs: - rubocop: + build: runs-on: ubuntu-latest - strategy: - fail-fast: false + env: + BUNDLE_ONLY: rubocop steps: - - name: Checkout repository - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - # If running on a self-hosted runner, check it meets the requirements - # listed at https://github.com/ruby/setup-ruby#using-self-hosted-runners - - name: Set up Ruby + - name: Set up Ruby 3.3 uses: ruby/setup-ruby@v1 with: - ruby-version: 3.1.0 + ruby-version: 3.3 bundler-cache: true - - name: Rubocop run + - name: Run RuboCop run: bundle exec rubocop --parallel