Skip to content

Commit 056fa11

Browse files
committed
Update build matrix to supported PHP versions.
1 parent c32e7a3 commit 056fa11

3 files changed

Lines changed: 539 additions & 341 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,29 @@ name: CI
22
on:
33
push:
44
branches:
5-
- '*'
5+
- "*"
66
pull_request:
77
schedule:
8-
- cron: 0 14 * * 0
8+
- cron: 0 14 * * 0
99
jobs:
1010
ci:
1111
name: PHP v${{ matrix.php }}
1212
runs-on: ubuntu-latest
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php: ['7.2', '7.3', '7.4']
16+
php: ["7.4", "8.0", "8.1"]
1717
steps:
18-
- name: Set up PHP
19-
uses: shivammathur/setup-php@master
20-
with:
21-
php-version: ${{ matrix.php }}
22-
coverage: xdebug
23-
- name: Check PHP version
24-
run: php -v
25-
- name: Checkout
26-
uses: actions/checkout@v1
27-
- name: Make
28-
run: make ci
29-
- name: Upload Coverage Reports
30-
if: success()
31-
run: |
32-
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"
18+
- name: Set up PHP
19+
uses: shivammathur/setup-php@master
20+
with:
21+
php-version: ${{ matrix.php }}
22+
coverage: xdebug
23+
- name: Check PHP version
24+
run: php -v
25+
- name: Checkout
26+
uses: actions/checkout@v1
27+
- name: Make
28+
run: make ci
29+
- name: Upload coverage report
30+
uses: codecov/codecov-action@v2

composer.json

Lines changed: 60 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,65 @@
11
{
2-
"name": "recoil/react",
3-
"description": "Integrate Recoil with ReactPHP.",
4-
"require": {
5-
"php": ">=7.3",
6-
"react/event-loop": "^1.0 || ^0.5 || ^0.4",
7-
"react/promise": "^2",
8-
"recoil/api": "^1.0.2",
9-
"recoil/kernel": "dev-php-8"
10-
},
11-
"require-dev": {
12-
"eloquent/phony": "^5",
13-
"friendsofphp/php-cs-fixer": "^2",
14-
"hamcrest/hamcrest-php": "^2",
15-
"peridot-php/leo": "^1",
16-
"peridot-php/peridot-code-coverage-reporters": "^2",
17-
"peridot-php/peridot": "^1",
18-
"recoil/dev": "dev-php-8"
2+
"name": "recoil/react",
3+
"description": "Integrate Recoil with ReactPHP.",
4+
"require": {
5+
"php": ">=7.4",
6+
"react/event-loop": "^1.0 || ^0.5 || ^0.4",
7+
"react/promise": "^2",
8+
"recoil/api": "^1.0.2",
9+
"recoil/kernel": "dev-php-8"
10+
},
11+
"require-dev": {
12+
"eloquent/phony": "^5",
13+
"friendsofphp/php-cs-fixer": "^2",
14+
"hamcrest/hamcrest-php": "^2",
15+
"peridot-php/leo": "^1",
16+
"peridot-php/peridot-code-coverage-reporters": "^2",
17+
"peridot-php/peridot": "^1",
18+
"recoil/dev": "dev-php-8"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"Recoil\\React\\": "src"
23+
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"Recoil\\React\\": "test/src"
1928
},
20-
"autoload": { "psr-4": { "Recoil\\React\\": "src" } },
21-
"autoload-dev": {
22-
"psr-4": { "Recoil\\React\\": "test/src" },
23-
"files": ["test/src/compatibility.php"]
29+
"files": [
30+
"test/src/compatibility.php"
31+
]
32+
},
33+
"keywords": [
34+
"async",
35+
"asynchronous",
36+
"continuation",
37+
"coroutine",
38+
"event",
39+
"generator",
40+
"green",
41+
"multitasking",
42+
"promise",
43+
"react",
44+
"react",
45+
"thread"
46+
],
47+
"homepage": "https://github.com/recoilphp/react",
48+
"license": "MIT",
49+
"authors": [
50+
{
51+
"name": "James Harris",
52+
"email": "james.harris@icecave.com.au",
53+
"homepage": "https://github.com/jmalloc"
54+
}
55+
],
56+
"config": {
57+
"sort-packages": true,
58+
"platform": {
59+
"php": "7.4"
2460
},
25-
"keywords": [
26-
"async",
27-
"asynchronous",
28-
"continuation",
29-
"coroutine",
30-
"event",
31-
"generator",
32-
"green",
33-
"multitasking",
34-
"promise",
35-
"react",
36-
"react",
37-
"thread"
38-
],
39-
"homepage": "https://github.com/recoilphp/react",
40-
"license": "MIT",
41-
"authors": [
42-
{
43-
"name": "James Harris",
44-
"email": "james.harris@icecave.com.au",
45-
"homepage": "https://github.com/jmalloc"
46-
}
47-
],
48-
"config": {
49-
"sort-packages": true,
50-
"platform": {
51-
"php": "7.3"
52-
}
61+
"allow-plugins": {
62+
"recoil/dev": true
5363
}
64+
}
5465
}

0 commit comments

Comments
 (0)