8000 Merge pull request #186 from SimonFrings/ci2 · reactphp/promise@a9752a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9752a8

Browse files
authored
Merge pull request #186 from SimonFrings/ci2
Use GitHub actions for continuous integration (CI) (promise-2.x)
2 parents 09d5ffc + 9eeca61 commit a9752a8

File tree

5 files changed

+49
-38
lines changed

5 files changed

+49
-38
lines changed

.gitattributes

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

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
coverage: xdebug
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+
continue-on-error: true
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: azjezz/setup-hhvm@v1
41+
with:
42+
version: lts-3.30
43+
- run: hhvm $(which composer) install
44+
- run: hhvm vendor/bin/phpunit

.gitignore

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

.travis.yml

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

README.md

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

7-
[![Build Status](https://travis-ci.org/reactphp/promise.svg?branch=master)](http://travis-ci.org/reactphp/promise)
8-
[![Coverage Status](https://coveralls.io/repos/github/reactphp/promise/badge.svg?branch=master)](https://coveralls.io/github/reactphp/promise?branch=master)
7+
[![CI status](https://github.com/reactphp/promise/workflows/CI/badge.svg?branch=2.x)](https://github.com/reactphp/promise/actions)
98

109
Table of Contents
1110
-----------------

0 commit comments

Comments
 (0)
0