Skip to content

Commit 1b6caa9

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent 58d178a commit 1b6caa9

3 files changed

Lines changed: 34 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php:
13+
- 7.4
14+
- 7.3
15+
- 7.2
16+
- 7.1
17+
- 7.0
18+
- 5.6
19+
- 5.5
20+
- 5.4
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
- run: composer install
28+
- run: vendor/bin/phpunit --coverage-text
29+
if: matrix.php >= 7.3
30+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
31+
if: matrix.php < 7.3

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# clue/reactphp-eventsource [![Build Status](https://travis-ci.org/clue/reactphp-eventsource.svg?branch=master)](https://travis-ci.org/clue/reactphp-eventsource)
1+
# clue/reactphp-eventsource
2+
3+
[![CI status](https://github.com/clue/reactphp-eventsource/workflows/CI/badge.svg)](https://github.com/clue/reactphp-eventsource/actions)
24

35
Event-driven EventSource client, receiving streaming messages from any HTML5 Server-Sent Events (SSE) server,
46
built on top of [ReactPHP](https://reactphp.org/).

0 commit comments

Comments
 (0)