Skip to content

Commit 2a9fc79

Browse files
authored
Merge pull request #402 from SimonFrings/ci
Use GitHub actions for continuous integration (CI)
2 parents 538a8f4 + aaca1b3 commit 2a9fc79

File tree

5 files changed

+52
-35
lines changed

5 files changed

+52
-35
lines changed

.gitattributes

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

.github/workflows/ci.yml

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

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HTTP
22

3-
[![Build Status](https://travis-ci.org/reactphp/http.svg?branch=master)](https://travis-ci.org/reactphp/http)
3+
[![CI status](https://github.com/reactphp/http/workflows/CI/badge.svg)](https://github.com/reactphp/http/actions)
44

55
Event-driven, streaming HTTP client and server implementation for [ReactPHP](https://reactphp.org/).
66

@@ -2738,7 +2738,7 @@ $ composer require react/http:^1.2
27382738
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
27392739

27402740
This project aims to run on any platform and thus does not require any PHP
2741-
extensions and supports running on legacy PHP 5.3 through current PHP 7+ and
2741+
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
27422742
HHVM.
27432743
It's *highly recommended to use PHP 7+* for this project.
27442744

tests/Client/FunctionalIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public function testPostJsonReturnsData()
167167
/** @group internet */
168168
public function testCancelPendingConnectionEmitsClose()
169169
{
170+
// max_nesting_level was set to 100 for PHP Versions < 5.4 which resulted in failing test for legacy PHP
171+
ini_set('xdebug.max_nesting_level', 256);
172+
170173
$loop = Factory::create();
171174
$client = new Client($loop);
172175

0 commit comments

Comments
 (0)