summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-12-31 23:25:30 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2023-01-01 10:08:58 -0300
commit339721134d5f7b2b5a317909cf81c460579c25ce (patch)
treea22166aaee5363f3df89106cc6804f5bcb6d8714
parente374c3a8086abe245c98834026a0617ffff9149c (diff)
downloadpry-339721134d5f7b2b5a317909cf81c460579c25ce.tar.gz
Makes rubocop run on another job
-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