Skip to content

Commit 7740549

Browse files
committed
Modernize GHA matrix
* Dropped all the OSes for single instances * stuck to X-latest for all the OSes * Added frozen-string variant.
1 parent 0abd938 commit 7740549

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,28 @@ name: Test
1212

1313
# quoting because https://twitter.com/josh_cheek/status/1406699258649190403
1414
"on":
15-
push:
16-
branches: [ master ]
17-
pull_request:
18-
branches: [ master ]
15+
- push
16+
- pull_request
1917

2018
jobs:
2119
test:
2220
strategy:
2321
fail-fast: false # Just to see where we're at outside of Windows
2422
matrix:
2523
os:
26-
- 'ubuntu-20.04'
27-
- 'windows-2016'
28-
- 'windows-2019'
29-
- 'macos-10.15'
30-
# This is currently unavailable: https://github.com/actions/virtual-environments/issues/2486
31-
# - 'macos-11.0'
32-
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
33-
24+
- 'ubuntu-latest'
25+
ruby:
26+
- '3.2'
27+
- '3.3'
28+
- '3.4'
29+
include:
30+
- os: windows-latest
31+
ruby: ruby
32+
- os: macos-latest
33+
ruby: ruby
34+
- os: ubuntu-latest
35+
ruby: ruby
36+
rubyopt: "--enable-frozen-string-literal"
3437
name: MRI ${{ matrix.ruby }} / ${{ matrix.os }}
3538
runs-on: ${{ matrix.os }}
3639

@@ -54,7 +57,7 @@ jobs:
5457
run: rake install
5558

5659
- name: Run rspec tests
57-
run: bundle/bin/rake spec
60+
run: RUBYOPT="${{ matrix.rubyopt }}" bundle/bin/rake spec
5861

5962
- name: Run cucumber features
60-
run: bundle/bin/rake cuke
63+
run: RUBYOPT="${{ matrix.rubyopt }}" bundle/bin/rake cuke

0 commit comments

Comments
 (0)