Skip to content

Skip archive test on macOS for binary path handling #298

Skip archive test on macOS for binary path handling

Skip archive test on macOS for binary path handling #298

name: Tests with pz7ip (no rar)
on: [push, pull_request]
jobs:
pz7ip:
runs-on: ubuntu-latest
steps:
- name: Install apt packages
run: |
sudo apt -y install p7zip-full ghostscript imagemagick
sudo sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
shell: bash
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: imagick, zip, fileinfo, bz2
coverage: pcov
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --prefer-dist --no-interaction
- name: Create .env file
run: |
cp .env.example .env
shell: bash
- name: Check extension imagick
run: php -m | grep imagick
- name: Execute tests
run: vendor/bin/pest