Replace gsplit with split on mac. #16
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: CI | |
env: | |
CI: true | |
on: [push] | |
jobs: | |
build-test: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: ['ubuntu-latest', 'macos-latest'] | |
php-versions: ['7.4', '8.0', '8.1'] | |
name: ${{ matrix.operating-system }} (PHP ${{ matrix.php-versions }}) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Libraries | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get install diffutils exiftool | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
brew install coreutils | |
elif [ "$RUNNER_OS" == "Windows" ]; then | |
choco install important_windows_software | |
fi | |
shell: bash | |
- name: PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '${{ matrix.php-versions }}' | |
extensions: gd | |
tools: composer, phpunit | |
- name: Composer | |
run: composer install --no-interaction | |
- name: PHPUnit | |
run: ./vendor/bin/phpunit |