-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (31 loc) · 1.33 KB
/
grumphp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: GrumPHP
on: [push, pull_request]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
php-versions: ['8.0', '8.1']
composer-options: ['', '--prefer-lowest']
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} ${{ matrix.composer-options }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: xdebug, mbstring #optional
- name: Check PHP Version
run: php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
- name: Run non windows test suite
run: vendor/bin/grumphp run
if: matrix.operating-system != 'windows-latest'
- name: Run windows test suite
run: vendor/bin/grumphp run --tasks phpunit
if: matrix.operating-system == 'windows-latest'