diff options
author | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2022-12-31 23:25:30 -0300 |
---|---|---|
committer | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2023-01-01 10:08:58 -0300 |
commit | 339721134d5f7b2b5a317909cf81c460579c25ce (patch) | |
tree | a22166aaee5363f3df89106cc6804f5bcb6d8714 /.github | |
parent | e374c3a8086abe245c98834026a0617ffff9149c (diff) | |
download | pry-339721134d5f7b2b5a317909cf81c460579c25ce.tar.gz |
Makes rubocop run on another job
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test.yml | 20 |
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 |