diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e383dc..0bc6ae0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,8 @@ on: jobs: PHPUnit: - runs-on: ubuntu-latest + name: PHPUnit (PHP ${{ matrix.php }}) + runs-on: ubuntu-20.04 strategy: matrix: php: @@ -21,12 +22,12 @@ jobs: - 5.4 steps: - uses: actions/checkout@v2 - - name: Setup PHP - uses: shivammathur/setup-php@v2 + - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + coverage: xdebug - run: composer install - run: vendor/bin/phpunit --coverage-text - if: matrix.php >= 7.3 + if: ${{ matrix.php >= 7.3 }} - run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy - if: matrix.php < 7.3 + if: ${{ matrix.php < 7.3 }} diff --git a/README.md b/README.md index ebdb165..c9151da 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # clue/reactphp-eventsource -[![CI status](https://github.com/clue/reactphp-eventsource/workflows/CI/badge.svg)](https://github.com/clue/reactphp-eventsource/actions) +[![CI status](https://github.com/clue/reactphp-eventsource/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-eventsource/actions) [![installs on Packagist](https://img.shields.io/packagist/dt/clue/reactphp-eventsource?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/reactphp-eventsource) Event-driven EventSource client, receiving streaming messages from any HTML5 Server-Sent Events (SSE) server,