Skip to content

Commit

Permalink
Simplify os syntax in CI to avoid so many '-latest'
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Apr 5, 2020
1 parent 5699693 commit 24d7979
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ ubuntu, macos, windows ]
# Use various version syntaxes here for testing
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 ]
exclude:
- os: windows-latest
- os: windows
ruby: truffleruby
- os: windows-latest
- os: windows
ruby: truffleruby-head
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down Expand Up @@ -76,11 +76,11 @@ jobs:
fail-fast: false
matrix:
cfg:
- { ruby: rubinius, os: ubuntu-18.04 }
- { ruby: mingw , os: windows-latest }
- { ruby: mswin , os: windows-latest }
- { ruby: rubinius, os: ubuntu }
- { ruby: mingw , os: windows }
- { ruby: mswin , os: windows }
name: ${{ matrix.cfg.os }} ${{ matrix.cfg.ruby }}
runs-on: ${{ matrix.cfg.os }}
runs-on: ${{ matrix.cfg.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down

0 comments on commit 24d7979

Please sign in to comment.