2020-01-22 01:07:32 +01:00
|
|
|
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:
|
2020-01-28 23:24:56 +01:00
|
|
|
php-version: ${{ matrix.php }}
|
2020-01-22 01:07:32 +01:00
|
|
|
coverage: none # disable xdebug, pcov
|
2020-01-25 20:42:31 +01:00
|
|
|
# report phpunit errors into files-changed PR tab
|
2020-01-28 23:24:56 +01:00
|
|
|
# https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
|
2020-01-25 12:58:02 +01:00
|
|
|
- name: Setup Problem Matchers for PHPUnit
|
|
|
|
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
2020-05-02 11:47:43 +02:00
|
|
|
|
|
|
|
- run: composer install --no-progress --ansi
|
2020-01-22 01:07:32 +01:00
|
|
|
- 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
|
2020-01-25 20:42:31 +01:00
|
|
|
# report phpunit errors into files-changed PR tab
|
2020-01-28 23:26:48 +01:00
|
|
|
# https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md
|
|
|
|
|
2020-01-25 12:58:02 +01:00
|
|
|
- name: Setup Problem Matchers for PHPUnit
|
|
|
|
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
2020-01-22 01:07:32 +01:00
|
|
|
|
|
|
|
- run: composer update --no-progress --prefer-lowest
|
|
|
|
- run: vendor/bin/phpunit
|