diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c4e2f96d26dd..63dca99d5272 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -18,8 +18,13 @@ jobs: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v1 with: - php-version: 7.2 + php-version: ${{ matrix.php }} coverage: none # disable xdebug, pcov + # report phpunit errors into files-changed PR tab + # https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md + - name: Setup Problem Matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - run: composer install --no-progress - run: vendor/bin/phpunit @@ -34,6 +39,11 @@ jobs: with: php-version: 7.2 coverage: none + # report phpunit errors into files-changed PR tab + # https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md + + - name: Setup Problem Matchers for PHPUnit + run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - run: composer update --no-progress --prefer-lowest - run: vendor/bin/phpunit