Skip to content

Commit

Permalink
Adapt Greg's changes
Browse files Browse the repository at this point in the history
Adds Mac and Ruby 2.3
  • Loading branch information
nateberkopec committed Aug 27, 2019
1 parent 017429a commit 3ecc9ae
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,45 @@ on:

jobs:
test:
name: Test on ruby ${{ matrix.ruby_version }} and ${{ matrix.os }}
name: Ruby ${{ matrix.ruby_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby_version: [2.4.x,2.5.x,2.6.x] # 2.2 is not currently offered, 2.3 not on windows
os: [ubuntu-latest] # MacOS is bugged r/n, see: https://github.com/actions/setup-ruby/issues/9, windows doesnt want to run bundle install for some reason

os: [ 'ubuntu-16.04', 'ubuntu-18.04', 'macos' ]
ruby: [ '2.3.x', '2.4.x', '2.5.x', '2.6.x' ]
exclude:
- os: ubuntu-16.04
ruby: 2.4.x
- os: ubuntu-16.04
ruby: 2.5.x
- os: ubuntu-16.04
ruby: 2.6.x
- os: ubuntu-18.04
ruby: 2.3.x
- os: macos
ruby: 2.3.x
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: actions/setup-ruby@master
- name: macOS install ragel
if: matrix.os == 'macos'
run: |
brew install ragel
- name: repo checkout
uses: actions/checkout@v1
with:
fetch-depth: 10
- name: load ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Install dependencies
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: |
gem install bundler
gem update --system --no-document --conservative
bundle install --jobs 4 --retry 3
- name: Compiles extensions
run: |
bundle exec rake compile
- name: Build and test with Rake
- name: compile
run: bundle exec rake compile
- name: test
env:
CI: true
TESTOPTS: -v
run: |
bundle exec rake
run: bundle exec rake

0 comments on commit 3ecc9ae

Please sign in to comment.