Small improvements #12
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: GrumPHP | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
run: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, macos-latest] | |
php-versions: ['8.1', '8.2', '8.3'] | |
composer-deps: ['highest', 'lowest'] | |
composer-versions: ['composer:v2'] | |
fail-fast: false | |
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-versions }} ${{ matrix.composer-deps }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: ${{ matrix.composer-versions }} | |
extensions: xdebug, mbstring, posix, pcov, intl | |
- name: Check Versions | |
run: | | |
php -v | |
php -m | |
composer --version | |
- name: Set env vars for latest PHP version | |
if: matrix.php-versions == '8.4' | |
run: | | |
export COMPOSER_IGNORE_PLATFORM_REQ=php+ | |
- name: Install dependencies (highest) | |
if: matrix.composer-deps == 'highest' | |
run: composer update --prefer-dist --no-progress --no-suggest | |
- name: Install dependencies (lowest) | |
if: matrix.composer-deps == 'lowest' | |
run: composer update --prefer-dist --no-progress --no-suggest --prefer-lowest | |
- name: Set git variables | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
git config --global protocol.file.allow always | |
- name: Run the tests | |
run: php vendor/bin/grumphp run --no-interaction |