-
-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (43 loc) · 1.14 KB
/
test.yml
File metadata and controls
51 lines (43 loc) · 1.14 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.5', '2.6', '2.7']
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@master
- name: Cache gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ matrix.ruby }}-gems-${{ hashFiles('Gemfile.lock') }}
restore-keys: ${{ matrix.ruby }}-gems-
- name: Set up Ruby ${{ matrix.ruby }}
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install
run: |
gem install bundler -v 2.1.2 --no-document
bundle config path vendor/bundle
bundle install -j $(nproc)
env:
BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES: 'true'
- name: Test
run: bundle exec rake test_with_coverage
env:
CI: "true"
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
CONTEXT: ${{ toJson(github) }}
RUBY_VERSION: ${{ matrix.ruby }}