Skip to content

Commit 5f274bd

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent 99241e8 commit 5f274bd

File tree

4 files changed

+46
-29
lines changed

4 files changed

+46
-29
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: 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+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php:
13+
- 7.4
14+
- 7.3
15+
- 7.2
16+
- 7.1
17+
- 7.0
18+
- 5.6
19+
- 5.5
20+
- 5.4
21+
- 5.3
22+
steps:
23+
- uses: actions/checkout@v2
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
- run: composer install
29+
- run: vendor/bin/phpunit --coverage-text
30+
if: ${{ matrix.php >= 7.3 }}
31+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
32+
if: ${{ matrix.php < 7.3 }}
33+
34+
PHPUnit-hhvm:
35+
name: PHPUnit (HHVM)
36+
runs-on: ubuntu-18.04
37+
steps:
38+
- uses: actions/checkout@v2
39+
- run: curl -O https://dl.hhvm.com/ubuntu/pool/main/h/hhvm/hhvm_3.30.9-1~bionic_amd64.deb
40+
- run: sudo apt install -y --allow-downgrades ./hhvm_3.30.9-1~bionic_amd64.deb
41+
- run: hhvm $(which composer) install
42+
- run: hhvm vendor/bin/phpunit --coverage-text

.travis.yml

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

README.md

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

35
Flux, the lightweight stream processor to concurrently do many (but not too many) things at once,
46
built on top of [ReactPHP](https://reactphp.org/).

0 commit comments

Comments
 (0)