Skip to content

Commit

Permalink
Merge pull request #10 from recoilphp/php-8
Browse files Browse the repository at this point in the history
Update to build under PHP 8
  • Loading branch information
jmalloc authored Mar 6, 2022
2 parents 968cde6 + ea478d4 commit c4f8924
Show file tree
Hide file tree
Showing 4 changed files with 1,336 additions and 533 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,29 @@ 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.1', '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 report
uses: codecov/codecov-action@v2
104 changes: 63 additions & 41 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,68 @@
{
"name": "recoil/kernel",
"description": "Reusable components for implementing Recoil kernels.",
"require": {
"php": "^7.1",
"icecave/repr": "^4|^3|^2",
"recoil/api": "^1"
"name": "recoil/kernel",
"description": "Reusable components for implementing Recoil kernels.",
"require": {
"php": ">=7.4",
"icecave/repr": "^4|^3|^2",
"recoil/api": "^1.0.2"
},
"require-dev": {
"eloquent/phony": "^5",
"friendsofphp/php-cs-fixer": "^2",
"hamcrest/hamcrest-php": "^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"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/recoilphp/leo"
},
"require-dev": {
"eloquent/phony": "^3.2",
"friendsofphp/php-cs-fixer": "^2",
"hamcrest/hamcrest-php": "^2",
"peridot-php/leo": "^1",
"peridot-php/peridot-code-coverage-reporters": "^2",
"peridot-php/peridot": "^1"
{
"type": "vcs",
"url": "https://github.com/recoilphp/peridot"
},
"autoload": { "psr-4": { "Recoil\\Kernel\\": "src" } },
"autoload-dev": { "psr-4": { "Recoil\\Kernel\\": "test/src" } },
"keywords": [
"coroutine",
"generator",
"event",
"async",
"asynchronous",
"react",
"green",
"thread",
"multitasking",
"continuation"
],
"homepage": "https://github.com/recoilphp/kernel",
"license": "MIT",
"authors": [
{
"name": "James Harris",
"email": "james.harris@icecave.com.au",
"homepage": "https://github.com/jmalloc"
}
],
"config": {
"sort-packages": true,
"platform": {
"php": "7.1"
}
{
"type": "vcs",
"url": "https://github.com/recoilphp/peridot-code-coverage-reporters"
}
],
"autoload": {
"psr-4": {
"Recoil\\Kernel\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Recoil\\Kernel\\": "test/src"
}
},
"keywords": [
"coroutine",
"generator",
"event",
"async",
"asynchronous",
"react",
"green",
"thread",
"multitasking",
"continuation"
],
"homepage": "https://github.com/recoilphp/kernel",
"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"
}
}
}
Loading

0 comments on commit c4f8924

Please sign in to comment.