-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from botuniverse/develop
0.5.0 release
- Loading branch information
Showing
137 changed files
with
2,688 additions
and
3,758 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Code Style | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre_job: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v4 | ||
with: | ||
concurrent_skipping: same_content_newer | ||
skip_after_successful_duplicate: true | ||
paths: '["src/**", "tests/**"]' | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
|
||
cs-fix: | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
name: Code Style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: sunxyw/workflows/setup-environment@main | ||
with: | ||
php-version: 8.0 | ||
php-extensions: swoole, posix, json | ||
operating-system: ubuntu-latest | ||
use-cache: true | ||
|
||
- name: Code Style | ||
uses: sunxyw/workflows/coding-style@main |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre_job: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v4 | ||
with: | ||
concurrent_skipping: same_content_newer | ||
skip_after_successful_duplicate: true | ||
paths: '["src/**", "tests/**"]' | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
|
||
analyse: | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
name: Static Analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: sunxyw/workflows/setup-environment@main | ||
with: | ||
php-version: 7.4 | ||
php-extensions: swoole, posix, json | ||
operating-system: ubuntu-latest | ||
use-cache: true | ||
|
||
- name: Static Analysis | ||
uses: sunxyw/workflows/static-analysis@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
- '*-dev*' | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- review_requested | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pre_job: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v4 | ||
with: | ||
concurrent_skipping: same_content_newer | ||
skip_after_successful_duplicate: true | ||
paths: '["src/**", "tests/**", "bin/phpunit-zm"]' | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
|
||
test: | ||
needs: pre_job | ||
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
strategy: | ||
matrix: | ||
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
php-version: [ 7.4, 8.0, 8.1 ] | ||
name: PHP ${{ matrix.php-version }} Test (${{ matrix.operating-system }}) | ||
runs-on: ${{ matrix.operating-system }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup PHP | ||
uses: sunxyw/workflows/setup-environment@main | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
php-extensions: swoole, posix, json | ||
operating-system: ${{ matrix.operating-system }} | ||
use-cache: true | ||
|
||
- name: Test | ||
uses: sunxyw/workflows/test@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,8 @@ cghooks.lock | |
### Phive ### | ||
tools | ||
.phive | ||
|
||
### pcov coverage report | ||
build/ | ||
|
||
data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
/** @noinspection PhpComposerExtensionStubsInspection */ | ||
|
||
declare(strict_types=1); | ||
|
||
require_once 'vendor/autoload.php'; | ||
|
||
$server = new \Choir\Http\Server('0.0.0.0', 20001, false, [ | ||
'worker-num' => 8, | ||
// 'logger-level' => 'debug', | ||
]); | ||
|
||
$server->on('workerstart', function () { | ||
// xhprof_enable(); | ||
}); | ||
|
||
$server->on('workerstop', function () { | ||
// $data = xhprof_disable(); | ||
// $x = new XHProfRuns_Default(); | ||
// $id = $x->save_run($data, 'xhprof_testing'); | ||
// echo "http://127.0.0.1:8080/index.php?run={$id}&source=xhprof_testing\n"; | ||
}); | ||
|
||
$server->on('request', function (Choir\Protocol\HttpConnection $connection) { | ||
$connection->end('hello world'); | ||
}); | ||
|
||
require_once '/private/tmp/xhprof-2.3.8/xhprof_lib/utils/xhprof_lib.php'; | ||
require_once '/private/tmp/xhprof-2.3.8/xhprof_lib/utils/xhprof_runs.php'; | ||
|
||
$server->start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.