Skip to content

Commit c12f07e

Browse files
authored
Merge pull request #24 from SimonFrings/ci
Use GitHub actions for continuous integration (CI)
2 parents 304dc38 + c5e32b2 commit c12f07e

File tree

4 files changed

+53
-31
lines changed

4 files changed

+53
-31
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/workflows 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: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 remove react/mysql --dev --no-interaction # do not install react/mysql example on legacy PHP
31+
if: ${{ matrix.php == 5.3 }}
32+
- run: composer install
33+
- run: vendor/bin/phpunit --coverage-text
34+
if: ${{ matrix.php >= 7.3 }}
35+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
36+
if: ${{ matrix.php < 7.3 }}
37+
38+
PHPUnit-hhvm:
39+
name: PHPUnit (HHVM)
40+
runs-on: ubuntu-18.04
41+
continue-on-error: true
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: azjezz/setup-hhvm@v1
45+
with:
46+
version: lts-3.30
47+
- run: hhvm $(which composer) install
48+
- run: hhvm vendor/bin/phpunit

.travis.yml

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

README.md

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

35
Async SSH proxy connector and forwarder, tunnel any TCP/IP-based protocol through an SSH server,
46
built on top of [ReactPHP](https://reactphp.org).
@@ -546,7 +548,7 @@ $ composer require clue/reactphp-ssh-proxy:^1.2
546548
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
547549

548550
This project aims to run on any platform and thus does not require any PHP
549-
extensions and supports running on legacy PHP 5.3 through current PHP 7+ and
551+
extensions and supports running on legacy PHP 5.3 through current PHP 8+ and
550552
HHVM.
551553
It's *highly recommended to use PHP 7+* for this project.
552554

0 commit comments

Comments
 (0)