diff options
author | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2023-01-01 10:52:58 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-01 10:52:58 -0300 |
commit | 15e960bf5551acc6a72bac0811c637b72cd79e89 (patch) | |
tree | a22166aaee5363f3df89106cc6804f5bcb6d8714 | |
parent | e374c3a8086abe245c98834026a0617ffff9149c (diff) | |
parent | 339721134d5f7b2b5a317909cf81c460579c25ce (diff) | |
download | pry-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.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 |