-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (56 loc) · 1.38 KB
/
ruby.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Ruby
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
jobs:
test:
runs-on: ubuntu-latest
name: Test
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
strategy:
fail-fast: false
matrix:
ruby:
- 2.3
- 2.6
- 2.7
gemfile:
- 3.2.gemfile
- 4.2.gemfile
- 5.0.gemfile
- 5.1.gemfile
- 5.2.gemfile
- 6.0.gemfile
exclude:
- gemfile: 3.2.gemfile
ruby: 2.6
- gemfile: 3.2.gemfile
ruby: 2.7
- gemfile: 4.2.gemfile
ruby: 2.7
- gemfile: 6.0.gemfile
ruby: 2.3
env:
BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake
- name: Publish code coverage
if: ${{ success() && env.CC_TEST_REPORTER_ID }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}