Skip to content

Commit

Permalink
Merge pull request #170 from recoilphp/php-8
Browse files Browse the repository at this point in the history
Update to work with PHP 8.
  • Loading branch information
jmalloc authored Mar 6, 2022
2 parents c3749a9 + 933be84 commit 075b076
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 615 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: CI
on:
push:
branches:
- '*'
- "*"
pull_request:
schedule:
- cron: 0 14 * * 0
- cron: 0 14 * * 0
jobs:
ci:
name: PHP v${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['7.2', '7.3', '7.4']
php: ["7.4", "8.0", "8.1"]
steps:
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Check PHP version
run: php -v
- name: Checkout
uses: actions/checkout@v1
- name: Make
run: make ci
- name: Upload Coverage Reports
if: success()
run: |
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"
- name: Set up PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Check PHP version
run: php -v
- name: Checkout
uses: actions/checkout@v1
- name: Make
run: make ci
- name: Upload Coverage Reports
if: success()
run: |
[[ -z "${{ secrets.CODECOV_TOKEN }}" ]] || bash <(curl -s https://codecov.io/bash) -t "${{ secrets.CODECOV_TOKEN }}" -B "${{ github.ref }}"
111 changes: 68 additions & 43 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,73 @@
{
"name": "recoil/recoil",
"description": "Asynchronous coroutines for PHP 7.",
"require": {
"php": "^7.2",
"recoil/api": "^1",
"recoil/kernel": "^1.0.2"
"name": "recoil/recoil",
"description": "Asynchronous coroutines for PHP 7.",
"require": {
"php": "^7.4",
"recoil/api": "^1",
"recoil/kernel": "^1.0.2"
},
"require-dev": {
"eloquent/phony": "^5",
"friendsofphp/php-cs-fixer": "^2",
"peridot-php/leo": "dev-php-8 as 1.999.999",
"peridot-php/peridot": "dev-php-8 as 1.999.999",
"peridot-php/peridot-code-coverage-reporters": "dev-php-8 as 2.999.999",
"react/dns": "^0.4",
"recoil/dev": "^0.4",
"recoil/react": "^1"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/recoilphp/leo"
},
"require-dev": {
"eloquent/phony": "^3.2",
"friendsofphp/php-cs-fixer": "^2",
"peridot-php/leo": "^1",
"peridot-php/peridot": "^1",
"peridot-php/peridot-code-coverage-reporters": "^2",
"react/dns": "^0.4",
"recoil/dev": "^0.4",
"recoil/react": "^1"
{
"type": "vcs",
"url": "https://github.com/recoilphp/peridot"
},
"autoload": { "psr-4": { "Recoil\\ReferenceKernel\\": "src" } },
"autoload-dev": { "psr-4": { "Recoil\\ReferenceKernel\\": "test/src" } },
"keywords": [
"coroutine",
"generator",
"event",
"async",
"asynchronous",
"react",
"green",
"thread",
"multitasking",
"continuation"
],
"homepage": "https://github.com/recoilphp/recoil",
"license": "MIT",
"authors": [
{
"name": "James Harris",
"email": "james.harris@icecave.com.au",
"homepage": "https://github.com/jmalloc"
}
],
"config": {
"sort-packages": true,
"platform": {
"php": "7.2"
}
{
"type": "vcs",
"url": "https://github.com/recoilphp/peridot-code-coverage-reporters"
}
],
"autoload": {
"psr-4": {
"Recoil\\ReferenceKernel\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Recoil\\ReferenceKernel\\": "test/src"
}
},
"keywords": [
"coroutine",
"generator",
"event",
"async",
"asynchronous",
"react",
"green",
"thread",
"multitasking",
"continuation"
],
"homepage": "https://github.com/recoilphp/recoil",
"license": "MIT",
"authors": [
{
"name": "James Harris",
"email": "james.harris@icecave.com.au",
"homepage": "https://github.com/jmalloc"
}
],
"config": {
"sort-packages": true,
"platform": {
"php": "7.4"
},
"allow-plugins": {
"recoil/dev": true
}
}
}
Loading

0 comments on commit 075b076

Please sign in to comment.