Merge pull request #101 from kiwilan/develop #410
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests on macOS | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: imagick, zip, fileinfo, intl | |
coverage: pcov | |
- name: Install | |
continue-on-error: true | |
run: | | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew update | |
brew upgrade | |
brew install p7zip rar ghostscript | |
brew install imagemagick | |
shell: bash | |
# - name: Add rar extension | |
# run: | | |
# git clone https://github.com/cataphract/php-rar | |
# cd php-rar | |
# phpize | |
# ./configure | |
# sudo make | |
# sudo make install | |
# pecl_path=$(pecl config-get ext_dir) | |
# phpini_path=$(php -i | grep /.+/php.ini -oE) | |
# sudo cp ./modules/rar.so $pecl_path | |
# sudo echo "extension=rar.so" > $phpini_path | |
- 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: Check extension rar | |
# run: php -m | grep rar | |
- name: Check extension imagick | |
run: php -m | grep imagick | |
- name: Execute tests | |
run: vendor/bin/pest |