mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
|
name: Tests
|
||
|
|
||
|
on:
|
||
|
pull_request: null
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
tests:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
php: ['7.3', '7.4']
|
||
|
|
||
|
name: PHP ${{ matrix.php }} tests
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: shivammathur/setup-php@v1
|
||
|
with:
|
||
|
php-version: 7.2
|
||
|
coverage: none # disable xdebug, pcov
|
||
|
- run: composer install --no-progress
|
||
|
- run: vendor/bin/phpunit
|
||
|
|
||
|
test_lowest_dependencies:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- run: git fetch --depth=100000 origin
|
||
|
|
||
|
# see https://github.com/shivammathur/setup-php
|
||
|
- uses: shivammathur/setup-php@v1
|
||
|
with:
|
||
|
php-version: 7.2
|
||
|
coverage: none
|
||
|
|
||
|
- run: composer update --no-progress --prefer-lowest
|
||
|
- run: vendor/bin/phpunit
|