Skip to content

Commit

Permalink
run test command instead of rake test; run rubocop tests only with …
Browse files Browse the repository at this point in the history
…ruby-latest
  • Loading branch information
iliabylich committed Sep 2, 2020
1 parent c186021 commit 7ae328c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
@@ -1,4 +1,4 @@
name: Parser Tests
name: Tests

on:
push:
Expand All @@ -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
Expand All @@ -46,4 +50,4 @@ jobs:
bundle update
- name: Run tests
run: |
bundle exec rake test
${{ matrix.test_command }}
2 changes: 1 addition & 1 deletion ci/run_rubocop_specs
Expand Up @@ -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
Expand Down

0 comments on commit 7ae328c

Please sign in to comment.