MacOS Installer #178
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: MacOS Installer | |
on: | |
workflow_run: | |
workflows: ["PHP-GLFW Tests"] | |
types: | |
- completed | |
jobs: | |
macos: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: ['macos-latest'] | |
php-versions: ['8.0', '8.1', '8.2'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
coverage: xdebug | |
tools: cs2pr | |
- name: Run the installer | |
run: php -r "copy('https://raw.githubusercontent.com/mario-deluna/php-glfw/master/install/macos-installer.php', 'phpglfw-installer.php');" && sudo php phpglfw-installer.php | |
- name: Install PHPUnit | |
run: composer require "phpunit/phpunit:9.6.3" | |
- name: Run PHPUnit | |
run: php vendor/bin/phpunit --exclude-group=glfwinit |