Skip to content

Commit 84c63eb

Browse files
committed
refactor: only fail the build for low coverage on non-windows MRI
1 parent 1fc8bca commit 84c63eb

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,28 @@ jobs:
2525
runs-on: ${{ matrix.operating-system }}
2626
continue-on-error: true
2727

28+
env:
29+
FAIL_ON_LOW_COVERAGE: ${{ matrix.fail_on_low_coverage }}
30+
2831
strategy:
2932
fail-fast: false
3033
matrix:
31-
ruby: ["3.1", "3.2", "3.3", "jruby-9.4", "truffleruby-24"]
34+
ruby: ["3.1", "3.4"]
3235
operating-system: [ubuntu-latest]
36+
fail_on_low_coverage: ["true"]
3337
include:
38+
- ruby: "jruby-9.4"
39+
operating-system: ubuntu-latest
40+
fail_on_low_coverage: "false"
41+
- ruby: "truffleruby-24"
42+
operating-system: ubuntu-latest
43+
fail_on_low_coverage: "false"
3444
- ruby: "3.1"
3545
operating-system: windows-latest
46+
fail_on_low_coverage: "false"
3647
- ruby: "jruby-9.4"
3748
operating-system: windows-latest
49+
fail_on_low_coverage: "false"
3850

3951
steps:
4052
- name: Checkout

.github/workflows/experimental_ruby_builds.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,28 @@ jobs:
2222
runs-on: ${{ matrix.operating-system }}
2323
continue-on-error: true
2424

25+
env:
26+
FAIL_ON_LOW_COVERAGE: ${{ matrix.fail_on_low_coverage }}
27+
2528
strategy:
2629
fail-fast: false
2730
matrix:
2831
include:
2932
- ruby: head
3033
operating-system: ubuntu-latest
34+
fail_on_low_coverage: "true"
3135
- ruby: head
3236
operating-system: windows-latest
37+
fail_on_low_coverage: "false"
3338
- ruby: truffleruby-head
3439
operating-system: ubuntu-latest
40+
fail_on_low_coverage: "false"
3541
- ruby: jruby-head
3642
operating-system: ubuntu-latest
43+
fail_on_low_coverage: "false"
3744
- ruby: jruby-head
3845
operating-system: windows-latest
46+
fail_on_low_coverage: "false"
3947

4048
steps:
4149
- name: Checkout

0 commit comments

Comments
 (0)