.github/workflows/ruby_ci.yml
name: Ruby CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [3.0.1, 2.7.3, 2.6.7, 2.5.9]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install system dependencies
run: sudo apt-get install cmake make gcc libtool
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rake spec