8000 Use GitHub actions for continuous integration (CI) · reactphp/promise@67ae27e · GitHub
[go: up one dir, main page]

Skip to content

Commit 67ae27e

Browse files
committed
Use GitHub actions for continuous integration (CI)
Bye bye Travis CI, you've served us well.
1 parent 0845d29 commit 67ae27e

File tree

5 files changed

+30
-27
lines changed

5 files changed

+30
-27
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/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
44
/phpunit.xml.dist export-ignore
55
/phpunit.xml.legacy export-ignore
66
/tests export-ignore

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
coverage: xdebug
24+
- run: composer install
25+
- run: vendor/bin/phpunit --coverage-text
26+
if: ${{ matrix.php >= 7.3 }}
27+
- run: vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
28+
if: ${{ matrix.php < 7.3 }}

.gitignore

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

.travis.yml

Lines changed: 0 additions & 22 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)](https://github.com/reactphp/promise/actions)
98

109
> The master branch contains the code for the upcoming 3.0 release.
1110
> For the code of the current stable 2.x release, checkout the

0 commit comments

Comments
 (0)
0