Skip to content

Commit 24d7979

Browse files
committed
Simplify os syntax in CI to avoid so many '-latest'
1 parent 5699693 commit 24d7979

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ ubuntu-latest, macos-latest, windows-latest ]
17+
os: [ ubuntu, macos, windows ]
1818
# Use various version syntaxes here for testing
1919
ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6.6, 2.7, ruby-head, jruby-9.1, jruby, jruby-head, truffleruby, truffleruby-head ]
2020
exclude:
21-
- os: windows-latest
21+
- os: windows
2222
ruby: truffleruby
23-
- os: windows-latest
23+
- os: windows
2424
ruby: truffleruby-head
2525
name: ${{ matrix.os }} ${{ matrix.ruby }}
26-
runs-on: ${{ matrix.os }}
26+
runs-on: ${{ matrix.os }}-latest
2727
steps:
2828
- uses: actions/checkout@v2
2929
- uses: ./
@@ -76,11 +76,11 @@ jobs:
7676
fail-fast: false
7777
matrix:
7878
cfg:
79-
- { ruby: rubinius, os: ubuntu-18.04 }
80-
- { ruby: mingw , os: windows-latest }
81-
- { ruby: mswin , os: windows-latest }
79+
- { ruby: rubinius, os: ubuntu }
80+
- { ruby: mingw , os: windows }
81+
- { ruby: mswin , os: windows }
8282
name: ${{ matrix.cfg.os }} ${{ matrix.cfg.ruby }}
83-
runs-on: ${{ matrix.cfg.os }}
83+
runs-on: ${{ matrix.cfg.os }}-latest
8484
steps:
8585
- uses: actions/checkout@v2
8686
- uses: ./

0 commit comments

Comments
 (0)