.github/workflows/test.yml in thinreports-0.12.0 vs .github/workflows/test.yml in thinreports-0.12.1
- old
+ new
@@ -4,10 +4,13 @@
jobs:
test:
name: Test against ruby ${{ matrix.ruby }} and prawn ${{ matrix.prawn }}
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
@@ -23,18 +26,14 @@
prawn: 2.2
- ruby: 3.0
prawn: 2.3
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
- - name: Set up diff-pdf
- run: |
- sudo apt-get update
- sudo apt-get install make automake g++ libpoppler-glib-dev poppler-utils libwxgtk3.0-dev
- git clone https://github.com/vslavik/diff-pdf.git -b v0.4.1 --depth 1 /tmp/diff-pdf-src
- cd /tmp/diff-pdf-src
- ./bootstrap && ./configure && make && sudo make install
+ - uses: hidakatsuya/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 }}