Skip to content

Commit 5d27f07

Browse files
authored
Merge pull request #27 from recoilphp/php-8
Update to support PHP 8
2 parents 6efde0f + e32e7c5 commit 5d27f07

3 files changed

Lines changed: 322 additions & 159 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.3', '7.4', '8.0']
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"friendsofphp/php-cs-fixer": "^2",
1717
"peridot-php/leo": "dev-php-8 as 1.999.999",
1818
"peridot-php/peridot": "dev-php-8 as 1.999.999",
19-
"peridot-php/peridot-code-coverage-reporters": "^2",
19+
"peridot-php/peridot-code-coverage-reporters": "dev-php-8 as 2.999.999",
2020
"recoil/recoil": "^1"
2121
},
2222
"repositories": [
@@ -27,6 +27,10 @@
2727
{
2828
"type": "vcs",
2929
"url": "https://github.com/recoilphp/peridot"
30+
},
31+
{
32+
"type": "vcs",
33+
"url": "https://github.com/recoilphp/peridot-code-coverage-reporters"
3034
}
3135
],
3236
"autoload": {

0 commit comments

Comments
 (0)