Skip to content

Commit aa0b9f1

Browse files
authored
Merge pull request reactphp#442 from clue-labs/github-ci
Use GitHub actions for continuous integration (CI)
2 parents 527e5cc + c6f3bab commit aa0b9f1

File tree

4 files changed

+45
-29
lines changed

4 files changed

+45
-29
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.gitattributes export-ignore
2+
/.github/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
44
/phpunit.xml.dist export-ignore
55
/tests export-ignore

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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-18.04
11+
strategy:
12+
matrix:
13+
php:
14+
- 7.4
15+
- 7.3
16+
- 7.2
17+
- 7.1
18+
- 7.0
19+
- 5.6
20+
- 5.5
21+
- 5.4
22+
- 5.3
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: xdebug
29+
- run: composer install
30+
- run: vendor/bin/phpunit --coverage-text --exclude-group internet
31+
32+
PHPUnit-hhvm:
33+
name: PHPUnit (HHVM)
34+
runs-on: ubuntu-18.04
35+
continue-on-error: true
36+
steps:
37+
- uses: actions/checkout@v2
38+
- uses: azjezz/setup-hhvm@v1
39+
with:
40+
version: lts-3.30
41+
- run: hhvm $(which composer) require phpunit/phpunit:^5 --dev # requires legacy phpunit
42+
- run: hhvm vendor/bin/phpunit --exclude-group internet

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<br>
1212

1313
<div align="center">
14-
<a href="https://travis-ci.org/reactphp/reactphp"><img src="https://travis-ci.org/reactphp/reactphp.svg?branch=master" alt="Build Status"></a>
14+
<a href="https://github.com/reactphp/reactphp/actions"><img src="https://github.com/reactphp/reactphp/workflows/CI/badge.svg" alt="Build Status"></a>
1515
</div>
1616

1717
<br>
@@ -265,7 +265,7 @@ $ php vendor/bin/phpunit
265265

266266
The test suite also contains a number of functional integration tests that rely
267267
on a stable internet connection. Due to the vast number of integration tests,
268-
these are skipped by default on Travis CI. If you also do not want to run these,
268+
these are skipped by default during CI runs. If you also do not want to run these,
269269
they can simply be skipped like this:
270270

271271
```bash

0 commit comments

Comments
 (0)