Skip to content

Commit cce5223

Browse files
authored
Merge pull request #9 from friends-of-reactphp/migrate-to-github-actions-for-ci
Migrate to GitHub Actions for CI
2 parents 185340b + 13ac84f commit cce5223

File tree

3 files changed

+26
-30
lines changed

3 files changed

+26
-30
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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.2
15+
- 7.1
16+
- 7.0
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
22+
coverage: xdebug
23+
- run: composer install
24+
- run: vendor/bin/phpunit --coverage-text

.travis.yml

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# A PSR-15 middleware adapter for react/http
22

3+
[![CI status](https://github.com/friends-of-reactphp/http-middleware-psr15-adapter/workflows/CI/badge.svg)](https://github.com/friends-of-reactphp/http-middleware-psr15-adapter/actions)
4+
35
Wraps PSR-15 middleware into coroutines using [`RecoilPHP`](https://github.com/recoilphp) making them usable within `react/http` as middleware.
46

57
# Install

0 commit comments

Comments
 (0)