blob: 698516752530031a38579efad5e33598b1a0b8f4 (
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
26
27
28
29
30
31
|
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: [ '2.1.10', '2.2.9', '2.3.8', '2.4.5', '2.5.3', '2.6.3']
steps:
- uses: actions/checkout@v1
- uses: actions/cache@preview
id: cache
with:
path: ~/local/rubies
key: ruby-${{ matrix.ruby-version }}
- uses: clupprich/ruby-build-action@master
id: ruby
with:
ruby-version: ${{ matrix.ruby-version }}
cache-available: ${{ steps.cache.outputs.cache-hit == 'true' }}
- name: Build and test with Rake
env:
CI: 'true'
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
|