Skip to content

Commit

Permalink
Split GHA ubuntu/mac runs
Browse files Browse the repository at this point in the history
  • Loading branch information
janlelis committed Apr 5, 2024
1 parent 8f33057 commit e40079f
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Test
on: [push, pull_request]

jobs:
test:
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
test-linux:
name: Ruby ${{ matrix.ruby }} (Linux)
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
Expand All @@ -15,24 +15,47 @@ jobs:
- '3.0'
- jruby
- truffleruby
os:
- ubuntu-latest
- macos-latest
runs-on: ${{matrix.os}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Install xsel
run: sudo apt install xsel
- name: Run tests
uses: coactions/setup-xvfb@v1
with:
run: bundle exec rake

test-mac:
name: Ruby ${{ matrix.ruby }} (Mac)
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- jruby
- truffleruby
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Run tests
run: bundle exec rake


test-windows:
name: Ruby ${{ matrix.ruby }} (windows-latest)
name: Ruby ${{ matrix.ruby }} (Windows)
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
Expand All @@ -42,6 +65,7 @@ jobs:
- '3.1'
- '3.0'
- jruby
- truffleruby
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e40079f

Please sign in to comment.