-
Notifications
You must be signed in to change notification settings - Fork 48
50 lines (39 loc) · 1.06 KB
/
Copy pathtest.yml
File metadata and controls
50 lines (39 loc) · 1.06 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
name: Test
on:
push:
branches:
- main
- "dev**"
pull_request:
jobs:
setup:
name: Ruby ${{ matrix.ruby }} with prawn ${{ matrix.prawn }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"
prawn:
- "2.4"
- "2.5"
steps:
- uses: actions/checkout@v6
- uses: hidakatsuya/action-setup-diff-pdf@v1
with:
diff-pdf-version: "0.5"
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install --gemfile gemfiles/prawn-${{ matrix.prawn }}.gemfile --jobs 4 --retry 3
- name: Run tests for main
run: bundle exec rake test:main
- name: Run tests for basic report
run: xvfb-run -a bundle exec rake test:basic_report
- name: Run tests for section report
run: xvfb-run -a bundle exec rake test:section_report