.github/workflows/test.yml in thinreports-0.12.1 vs .github/workflows/test.yml in thinreports-0.13.0

- old
+ new

@@ -1,50 +1,42 @@ name: Test on: [push, pull_request] jobs: - test: - name: Test against ruby ${{ matrix.ruby }} and prawn ${{ matrix.prawn }} + setup: + name: Ruby ${{ matrix.ruby }} + runs-on: ubuntu-latest + # Run this build only on either pull request or push. if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository strategy: matrix: ruby: - - 2.5 - - 2.6 - - 2.7 - - 3.0 - - jruby - prawn: - - 2.2 - - 2.3 - - 2.4 - exclude: - - ruby: 3.0 - prawn: 2.2 - - ruby: 3.0 - prawn: 2.3 + - "2.7" + - "3.0" + - "3.1" + - "3.2" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: hidakatsuya/setup-diff-pdf@v1 - with: - diff-pdf-version: 0.5 + - 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 }} + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true - - name: Install dependencies - run: | - gem install bundler - 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 - run: | - bundle exec rake test:units - bundle exec rake test:features + - 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