From 8a58bed18e88c50bae303699e2f96655fef32926 Mon Sep 17 00:00:00 2001 From: Gustavo Karkow <14905932+karkowg@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:50:04 -0500 Subject: [PATCH] chore: refactor tests workflow to build mutool 1/19289012 --- .github/workflows/tests.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c9cfa0b..cb2a00d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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') }} @@ -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