-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (32 loc) · 893 Bytes
/
ci.yml
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
32
name: CI
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: [ '2.7', '3.1' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Setup cache key and directory for gems cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-use-ruby-${{ matrix.ruby_version }}-${{ hashFiles('**/Gemfile.lock') }}
- name: Bundle install
run: |
gem install bundler:2.3.6
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run tests
run: |
bundle exec rake test