Skip to content

Commit

Permalink
use "|| true" in GH actions to swallow errors (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich authored Nov 25, 2020
1 parent 9c719dd commit d366f34
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow_failure }}
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
Expand All @@ -20,17 +19,13 @@ jobs:
matrix:
ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.2", "jruby-9.2"]
test_command: ["bundle exec rake test"]
allow_failure: [false]
include:
- ruby: "head"
test_command: "bundle exec rake test"
allow_failure: true
test_command: "bundle exec rake test || true"
- ruby: "truffleruby"
test_command: "bundle exec rake test"
allow_failure: true
test_command: "bundle exec rake test || true"
- ruby: "2.7.2"
test_command: "./ci/run_rubocop_specs"
allow_failure: true
test_command: "./ci/run_rubocop_specs || true"
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
Expand All @@ -54,6 +49,3 @@ jobs:
- name: Run tests
run: |
${{ matrix.test_command }}
- name: ignore failure if the job is allowed to fail
if: ${{ matrix.allow_failure }}
run: true

0 comments on commit d366f34

Please sign in to comment.