summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2023-01-01 10:52:58 -0300
committerGitHub <noreply@github.com>2023-01-01 10:52:58 -0300
commit15e960bf5551acc6a72bac0811c637b72cd79e89 (patch)
treea22166aaee5363f3df89106cc6804f5bcb6d8714
parente374c3a8086abe245c98834026a0617ffff9149c (diff)
parent339721134d5f7b2b5a317909cf81c460579c25ce (diff)
downloadpry-15e960bf5551acc6a72bac0811c637b72cd79e89.tar.gz
Merge pull request #2262 from andrehjr/add-rubocop-single-actions
Move Rubocop checks to a single GitHub Action
-rw-r--r--.github/workflows/test.yml20
1 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7d18da56..abdd1b18 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -3,6 +3,21 @@ name: pry
on: [push, pull_request]
jobs:
+ rubocop:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.2
+
+ - name: Install dependencies
+ run: bundle install
+
+ - name: Rubocop lint
+ run: rubocop --parallel
+
test:
strategy:
matrix:
@@ -52,11 +67,6 @@ jobs:
- name: Install dependencies
run: bundle install
- # Rubocop is not included on the Gemfile for earlier rubies. This can be dropped as soon as the support is dropped.
- - name: Rubocop lint
- if: matrix.ruby != '2.0' && matrix.ruby != '2.1' && matrix.ruby != '2.2'
- run: rubocop --parallel
-
- name: YARD lint
run: |
touch README # Workaround for "incorrect" links in README.md