Skip to content

Commit

Permalink
CI: add full run specs for main RuboCop repo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Jun 7, 2020
1 parent e98d015 commit bf04f35
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [push, pull_request]

jobs:
main:
ast_specs:
name: >-
${{ matrix.ruby }} | RuboCop ${{ matrix.rubocop }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
Expand Down Expand Up @@ -54,3 +54,33 @@ jobs:
- name: internal_investigation
if: matrix.os != 'windows'
run: bundle exec rake internal_investigation
rubocop_specs:
name: >-
Full specs ${{ matrix.ruby }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}-latest
env:
# See https://github.com/tmm1/test-queue#environment-variables
TEST_QUEUE_WORKERS: 2
strategy:
fail-fast: false
matrix:
os: [ ubuntu ]
ruby: [ 2.4, 2.7 ]
rubocop: [ master ]

steps:
- name: checkout
uses: actions/checkout@v2
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: install dependencies
run: bundle install --jobs 3 --retry 3
- name: install rubocop from source for internal investigation
run: |
git clone https://github.com/rubocop-hq/rubocop.git ../rubocop
chmod +x ../rubocop/exe/rubocop
cd ../rubocop && bundle install --jobs 3 --retry 3
- name: spec
run: cd ../rubocop && bundle exec rake spec

0 comments on commit bf04f35

Please sign in to comment.