Skip to content

Commit 2e40b8f

Browse files
authored
Merge pull request #187 from SimonFrings/ci1
Use GitHub actions for continuous integration (CI) (promise-1.x)
2 parents 1b38b07 + 5c9e60b commit 2e40b8f

File tree

5 files changed

+49
-34
lines changed

5 files changed

+49
-34
lines changed

.gitattributes

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

.github/workflows/ci.yml

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

.gitignore

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

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ React/Promise
44
A lightweight implementation of
55
[CommonJS Promises/A](http://wiki.commonjs.org/wiki/Promises/A) for PHP.
66

7-
[![Build Status](https://secure.travis-ci.org/reactphp/promise.png?branch=master)](http://travis-ci.org/reactphp/promise)
7+
[![CI status](https://github.com/reactphp/promise/workflows/CI/badge.svg?branch=1.x)](https://github.com/reactphp/promise/actions)
88

99
Table of Contents
1010
-----------------

0 commit comments

Comments
 (0)