Skip to content

Commit 4ddcd3a

Browse files
authored
Merge pull request #14 from SimonFrings/ci
Use GitHub actions for continuous integration (CI)
2 parents 251f6c6 + a7e2aab commit 4ddcd3a

File tree

5 files changed

+39
-22
lines changed

5 files changed

+39
-22
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.gitattributes export-ignore
2+
/.github/workflows export-ignore
3+
/.gitignore export-ignore
4+
/examples/ export-ignore
5+
/phpunit.xml.dist export-ignore
6+
/tests/ export-ignore

.github/workflows/ci.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/vendor
21
/composer.lock
2+
/vendor/

.travis.yml

Lines changed: 0 additions & 20 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/sse-react [![Build Status](https://travis-ci.org/clue/php-sse-react.svg?branch=master)](https://travis-ci.org/clue/php-sse-react)
1+
# clue/sse-react
2+
3+
[![CI status](https://github.com/clue/php-sse-react/workflows/CI/badge.svg)](https://github.com/clue/php-sse-react/actions)
24

35
Streaming, async HTML5 Server-Sent Events server (aka. SSE or EventSource), built on top of [React PHP](http://reactphp.org/).
46

0 commit comments

Comments
 (0)