forked from edwinmoss/rfpdf
-
Notifications
You must be signed in to change notification settings - Fork 22
60 lines (57 loc) · 2.53 KB
/
test.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
60
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['jruby', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
gemfile: ['Gemfile.rbpdf-font']
include:
- { ruby: 'jruby', gemfile: 'Gemfile.rails7' }
- { ruby: '2.3', gemfile: 'Gemfile.rails5' }
- { ruby: '2.3', gemfile: 'Gemfile.rails5_rmagick' }
- { ruby: '2.3', gemfile: 'Gemfile.rails5_mini_magick' }
- { ruby: '2.4', gemfile: 'Gemfile.rails5' }
- { ruby: '2.4', gemfile: 'Gemfile.rails5_rmagick' }
- { ruby: '2.4', gemfile: 'Gemfile.rails5_mini_magick' }
- { ruby: '2.5', gemfile: 'Gemfile.rails6' }
- { ruby: '2.5', gemfile: 'Gemfile.rails6_rmagick' }
- { ruby: '2.5', gemfile: 'Gemfile.rails6_mini_magick' }
- { ruby: '2.6', gemfile: 'Gemfile.rails6' }
- { ruby: '2.6', gemfile: 'Gemfile.rails6_rmagick' }
- { ruby: '2.6', gemfile: 'Gemfile.rails6_mini_magick' }
- { ruby: '2.7', gemfile: 'Gemfile.rails7' }
- { ruby: '2.7', gemfile: 'Gemfile.rails7_rmagick' }
- { ruby: '2.7', gemfile: 'Gemfile.rails7_mini_magick' }
- { ruby: '3.0', gemfile: 'Gemfile.rails7' }
- { ruby: '3.0', gemfile: 'Gemfile.rails7_rmagick' }
- { ruby: '3.0', gemfile: 'Gemfile.rails7_mini_magick' }
- { ruby: '3.1', gemfile: 'Gemfile.rails7' }
- { ruby: '3.1', gemfile: 'Gemfile.rails7_rmagick' }
- { ruby: '3.1', gemfile: 'Gemfile.rails7_mini_magick' }
- { ruby: '3.2', gemfile: 'Gemfile.rails7' }
- { ruby: '3.2', gemfile: 'Gemfile.rails7_rmagick' }
- { ruby: '3.2', gemfile: 'Gemfile.rails7_mini_magick' }
- { ruby: '3.3', gemfile: 'Gemfile.rails7' }
- { ruby: '3.3', gemfile: 'Gemfile.rails7_rmagick' }
- { ruby: '3.3', gemfile: 'Gemfile.rails7_mini_magick' }
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: rbpdf-font tests
id: rbpdf-font
if: contains(matrix.gemfile, 'rbpdf-font')
run: bundle install && cd rbpdf-font && rake test
- name: rbpdf tests
id: rbpdf
if: steps.rbpdf-font.conclusion == 'skipped'
run: bundle exec rake test