From 7ae328c5bcd8a653a84b6d9538778eea3e07b890 Mon Sep 17 00:00:00 2001 From: Ilya Bylich Date: Wed, 2 Sep 2020 16:12:18 +0300 Subject: [PATCH] run test command instead of `rake test`; run rubocop tests only with ruby-latest --- .github/workflows/test.yml | 16 ++++++++++------ ci/run_rubocop_specs | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb7c0a748..5c41e5fc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Parser Tests +name: Tests on: push: @@ -14,16 +14,20 @@ jobs: BUNDLE_RETRY: 3 CI: true TRUFFLERUBYOPT: "--engine.Mode=latency" - continue-on-error: ${{ matrix.experimental }} + continue-on-error: ${{ matrix.allow_failure }} strategy: fail-fast: false matrix: ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.1", "jruby-9.2", "truffleruby"] - test_command: ["bundle exec rake test", "./ci/run_rubocop_specs"] - experimental: [false] + test_command: ["bundle exec rake test"] + allow_failure: [false] include: - ruby: "head" - experimental: true + test_command: "bundle exec rake test" + allow_failure: true + - ruby: "2.7.1" + test_command: "./ci/run_rubocop_specs" + allow_failure: true steps: - uses: actions/checkout@v2 - uses: actions/cache@v1 @@ -46,4 +50,4 @@ jobs: bundle update - name: Run tests run: | - bundle exec rake test + ${{ matrix.test_command }} diff --git a/ci/run_rubocop_specs b/ci/run_rubocop_specs index 456ce2c60..25bf78a04 100755 --- a/ci/run_rubocop_specs +++ b/ci/run_rubocop_specs @@ -3,7 +3,7 @@ set -eux bundle install -rake generate +bundle exec rake generate git clone https://github.com/rubocop-hq/rubocop.git --depth=1 cd rubocop