Skip to content

Commit 4636b4e

Browse files
committed
chore(ci): Now use GitHub workflows.
1 parent 412356b commit 4636b4e

File tree

9 files changed

+154
-66
lines changed

9 files changed

+154
-66
lines changed

.github/workflows/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*.yml]
2+
indent_size = 2

.github/workflows/checks.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
composer-normalize:
11+
name: Composer Normalize
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Composer normalize
19+
uses: docker://ergebnis/composer-normalize-action
20+
21+
roave-bc-check:
22+
name: Roave BC Check
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Roave BC Check
30+
uses: docker://nyholm/roave-bc-check-ga

.github/workflows/ci.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
latest:
9+
name: PHP ${{ matrix.php }} Latest
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php }}
23+
tools: composer
24+
coverage: none
25+
26+
- name: Install dependencies
27+
run: composer update --prefer-dist --no-interaction --no-progress
28+
29+
- name: boot test server
30+
run: vendor/bin/http_test_server > /dev/null 2>&1 &
31+
32+
- name: Execute tests
33+
run: composer test
34+
35+
lowest:
36+
name: PHP ${{ matrix.php }} Lowest
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
php: ['7.1', '7.2', '7.3', '7.4']
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v2
45+
46+
- name: Setup PHP
47+
uses: shivammathur/setup-php@v2
48+
with:
49+
php-version: ${{ matrix.php }}
50+
tools: composer
51+
coverage: none
52+
53+
- name: Install dependencies
54+
run: composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
55+
56+
- name: boot test server
57+
run: vendor/bin/http_test_server > /dev/null 2>&1 &
58+
59+
- name: Execute tests
60+
run: composer test
61+
62+
coverage:
63+
name: Code Coverage
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- name: Checkout code
68+
uses: actions/checkout@v2
69+
70+
- name: Setup PHP
71+
uses: shivammathur/setup-php@v2
72+
with:
73+
php-version: 7.4
74+
tools: composer
75+
coverage: xdebug
76+
77+
- name: Install dependencies
78+
run: composer update --prefer-dist --no-interaction --no-progress
79+
80+
- name: boot test server
81+
run: vendor/bin/http_test_server > /dev/null 2>&1 &
82+
83+
- name: Execute tests
84+
run: composer test-ci

.github/workflows/static.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Static analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
phpstan:
11+
name: PHPStan
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: PHPStan
19+
uses: docker://oskarstark/phpstan-ga
20+
env:
21+
REQUIRE_DEV: true
22+
with:
23+
args: analyze --no-progress
24+
25+
php-cs-fixer:
26+
name: PHP-CS-Fixer
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v2
32+
33+
- name: PHP-CS-Fixer
34+
uses: docker://oskarstark/php-cs-fixer-ga
35+
with:
36+
args: --dry-run --diff-format udiff

.scrutinizer.yml

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

.styleci.yml

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

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Latest Version](https://img.shields.io/github/release/php-http/react-adapter.svg?style=flat-square)](https://github.com/php-http/react-adapter/releases)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5-
[![Build Status](https://img.shields.io/travis/php-http/react-adapter.svg?style=flat-square)](https://travis-ci.org/php-http/react-adapter)
5+
[![Build Status](https://img.shields.io/github/workflow/status/php-http/react-adapter/CI.svg?style=flat-square)](https://github.com/php-http/react-adapter/actions?query=workflow%3ACI)
66
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/react-adapter.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/react-adapter)
77
[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/react-adapter.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/react-adapter)
88
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/react-adapter.svg?style=flat-square)](https://packagist.org/packages/php-http/react-adapter)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1",
14+
"php": "^7.1|^8.0",
1515
"php-http/httplug": "^2.0",
1616
"react/http-client": "~0.5.9",
1717
"react/dns": "^1.0|^0.4.15",

0 commit comments

Comments
 (0)