Skip to content

Commit

Permalink
chore: refactor tests workflow to build mutool 1/19289012
Browse files Browse the repository at this point in the history
  • Loading branch information
karkowg committed Nov 8, 2024
1 parent ecf83ea commit 8a58bed
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest, macos-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
php: [ 8.0, 8.1, 8.2, 8.3 ]
dependency-version: [ prefer-lowest, prefer-stable ]

name: Tests P${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}

steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand All @@ -35,9 +34,12 @@ jobs:
- name: Install Composer dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist

- name: Replace mutool binary for macos
if: ${{ matrix.os == 'macos-latest' }}
run: mv ./bin/mutool-macos ./bin/mutool
- name: Set up permissions to execute build script for Linux/macOS
if: ${{ matrix.os != 'windows-latest' }}
run: chmod +x build-mupdf.sh

- name: Build mutool
run: ./build-mupdf.sh

- name: Unit Tests
- name: Unit tests
run: php ./vendor/bin/pest

0 comments on commit 8a58bed

Please sign in to comment.