Skip to content

Commit a4130a6

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent 28fac70 commit a4130a6

File tree

5 files changed

+67
-52
lines changed

5 files changed

+67
-52
lines changed

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/.gitattributes export-ignore
2+
/.github/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
4-
/examples export-ignore
4+
/examples/ export-ignore
55
/phpunit.xml.dist export-ignore
66
/phpunit.xml.legacy export-ignore
7-
/tests export-ignore
7+
/tests/ export-ignore

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
PHPUnit:
9+
name: PHPUnit (PHP ${{ matrix.php }} on ${{ matrix.os }})
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os:
14+
- ubuntu-20.04
15+
- windows-2019
16+
php:
17+
- 7.4
18+
- 7.3
19+
- 7.2
20+
- 7.1
21+
- 7.0
22+
- 5.6
23+
- 5.5
24+
- 5.4
25+
- 5.3
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
coverage: xdebug
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-macOS:
39+
name: PHPUnit (macOS)
40+
runs-on: macos-10.15
41+
continue-on-error: true
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: shivammathur/setup-php@v2
45+
with:
46+
php-version: 7.4
47+
coverage: xdebug
48+
- run: composer install
49+
- run: vendor/bin/phpunit --coverage-text
50+
51+
PHPUnit-hhvm:
52+
name: PHPUnit (HHVM)
53+
runs-on: ubuntu-18.04
54+
continue-on-error: true
55+
steps:
56+
- uses: actions/checkout@v2
57+
- uses: azjezz/setup-hhvm@v1
58+
with:
59+
version: lts-3.30
60+
- run: hhvm $(which composer) install
61+
- run: hhvm vendor/bin/phpunit

.gitignore

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

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Socket
22

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

55
Async, streaming plaintext TCP/IP and secure TLS socket server and client
66
connections for [ReactPHP](https://reactphp.org/).

0 commit comments

Comments
 (0)