Skip to content

Commit 28d4fe2

Browse files
authored
Merge pull request #27 from clue-labs/ci
Improve CI setup, lock OS versions, always show code coverage
2 parents 7e6d7fd + b4617af commit 28d4fe2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66

77
jobs:
88
PHPUnit:
9-
runs-on: ubuntu-latest
9+
name: PHPUnit (PHP ${{ matrix.php }})
10+
runs-on: ubuntu-20.04
1011
strategy:
1112
matrix:
1213
php:
@@ -21,12 +22,12 @@ jobs:
2122
- 5.4
2223
steps:
2324
- uses: actions/checkout@v2
24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
25+
- uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php }}
28+
coverage: xdebug
2829
- run: composer install
2930
- run: vendor/bin/phpunit --coverage-text
30-
if: matrix.php >= 7.3
31+
if: ${{ matrix.php >= 7.3 }}
3132
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
32-
if: matrix.php < 7.3
33+
if: ${{ matrix.php < 7.3 }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# clue/reactphp-eventsource
22

3-
[![CI status](https://github.com/clue/reactphp-eventsource/workflows/CI/badge.svg)](https://github.com/clue/reactphp-eventsource/actions)
3+
[![CI status](https://github.com/clue/reactphp-eventsource/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-eventsource/actions)
44
[![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)
55

66
Event-driven EventSource client, receiving streaming messages from any HTML5 Server-Sent Events (SSE) server,

0 commit comments

Comments
 (0)