Add MacOS to CI

This commit is contained in:
kojix2 2020-11-23 21:39:50 +09:00
parent 7034a83dea
commit 1697360b6b

View File

@ -2,15 +2,17 @@ name: test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
name: ${{ matrix.os }} Ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: ['ubuntu', 'macos']
ruby: [ '2.5', '2.6', '2.7' ]
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: gem install bundler
- run: bundle install
- run: bundle exec rake test