Skip to content

Commit 6e78768

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent 304dc38 commit 6e78768

File tree

4 files changed

+51
-30
lines changed

4 files changed

+51
-30
lines changed

.gitattributes

+1-1
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

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

.travis.yml

-28
This file was deleted.

README.md

+3-1
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).

0 commit comments

Comments
 (0)