-
Notifications
You must be signed in to change notification settings - Fork 1
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 #12 from hschimpf/2.x-dev
Tasks management updates and CI action
- Loading branch information
Showing
14 changed files
with
293 additions
and
24 deletions.
There are no files selected for viewing
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,31 @@ | ||
name: PHPUnit Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install PHP 8.0 with ZTS | ||
uses: shivammathur/setup-php@v2 | ||
env: | ||
phpts: ts | ||
with: | ||
php-version: '8.0' | ||
extensions: parallel | ||
ini-values: extension=parallel.so, zend_extension=opcache.so, opcache.enable_cli=1, opcache.enable=1, opcache.jit_buffer_size=64M, opcache.jit=1205, opcache.enable_file_override=1, opcache.max_accelerated_files=4000, opcache.validate_timestamps=0, opcache.interned_strings_buffer=8 | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer install --no-interaction --no-progress --no-suggest | ||
|
||
- name: Run PHPUnit Tests | ||
run: ./vendor/bin/phpunit |
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
17 changes: 17 additions & 0 deletions
17
src/Internals/Commands/Runner/RemovePendingTasksMessage.php
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,17 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace HDSSolutions\Console\Parallel\Internals\Commands\Runner; | ||
|
||
use HDSSolutions\Console\Parallel\Internals\Commands\ParallelCommandMessage; | ||
use HDSSolutions\Console\Parallel\Internals\Runner; | ||
|
||
/** | ||
* Message sent to {@see Runner} to execute {@see Runner::removePendingTasks()} action | ||
*/ | ||
final class RemovePendingTasksMessage extends ParallelCommandMessage { | ||
|
||
public function __construct() { | ||
parent::__construct('remove_pending_tasks'); | ||
} | ||
|
||
} |
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,17 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace HDSSolutions\Console\Parallel\Internals\Commands\Runner; | ||
|
||
use HDSSolutions\Console\Parallel\Internals\Commands\ParallelCommandMessage; | ||
use HDSSolutions\Console\Parallel\Internals\Runner; | ||
|
||
/** | ||
* Message sent to {@see Runner} to execute {@see Runner::stopRunningTasks()} action | ||
*/ | ||
final class StopRunningTasksMessage extends ParallelCommandMessage { | ||
|
||
public function __construct() { | ||
parent::__construct('stop_running_tasks', [ true ]); | ||
} | ||
|
||
} |
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
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.