Merge pull request #135 from thinreports/test-against-prawn2.5.0 #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 |