Skip to content

Merge pull request #55 from kiwilan/develop #145

Merge pull request #55 from kiwilan/develop

Merge pull request #55 from kiwilan/develop #145

Workflow file for this run

name: Tests on macOS
on: [push, pull_request]
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
continue-on-error: true
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew update
brew install p7zip
brew install rar
brew install ghostscript
brew install imagemagick
shell: bash
- 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 install --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