summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
blob: eb0a13ca5436948fb9ed61fd4fec3656ca29de30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Test

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    
    strategy:
      matrix:
        ruby-version: [2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, ruby-head]
    steps:
    - uses: actions/checkout@v1
    - name: Set up Ruby ${{ matrix.ruby-version }}
      uses: actions/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
    - name: Build and test with Rake
      env:
        CI: 'true'
      run: |
        gem install bundler
        bundle install --jobs 4 --retry 3
        bundle exec rake