Skip to content

Commit

Permalink
Merge pull request #72 from spiral/bugfix/console-commands
Browse files Browse the repository at this point in the history
Fix console commands configuration
  • Loading branch information
butschster authored Nov 6, 2023
2 parents b84d842 + d7c731a commit abcdebc
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 122 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
on:
push:
branches:
- master
pull_request: null
push:
branches:
- master
- '*.*'

name: phpunit

jobs:
phpunit:
uses: spiral/gh-actions/.github/workflows/phpunit.yml@master
with:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2']
stability: >-
['prefer-stable']
phpunit:
uses: spiral/gh-actions/.github/workflows/phpunit.yml@master
with:
extensions: sockets, grpc
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2']
stability: >-
['prefer-stable']
8 changes: 5 additions & 3 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
on:
push:
branches:
- master
pull_request: null
push:
branches:
- master
- '*.*'

name: static analysis

Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/run-tests.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/static-analysis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion src/Commands/MakePresetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
use Spiral\TemporalBridge\Generator\Generator;
use Spiral\TemporalBridge\Preset\PresetRegistryInterface;
use Spiral\TemporalBridge\WorkflowPresetLocatorInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;

final class MakePresetCommand extends Command
{
use WithContext;

protected const SIGNATURE = 'temporal:make-preset {preset : Workflow preset} {name : Workflow name}';
protected const NAME = 'temporal:make-preset';
protected const DESCRIPTION = 'Make a new Temporal workflow preset';
protected const ARGUMENTS = [
['name', InputArgument::REQUIRED, 'Workflow name'],
['preset', InputArgument::REQUIRED, 'Workflow preset'],
];

public function perform(
Generator $generator,
Expand Down
6 changes: 5 additions & 1 deletion src/Commands/MakeWorkflowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
use Spiral\TemporalBridge\Generator\HandlerInterfaceGenerator;
use Spiral\TemporalBridge\Generator\WorkflowGenerator;
use Spiral\TemporalBridge\Generator\WorkflowInterfaceGenerator;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;

final class MakeWorkflowCommand extends Command
{
use WithContext;

protected const SIGNATURE = 'temporal:make-workflow {name : Workflow name}';
protected const NAME = 'temporal:make-workflow';
protected const DESCRIPTION = 'Make a new Temporal workflow';
protected const ARGUMENTS = [
['name', InputArgument::REQUIRED, 'Workflow name'],
];

public function perform(Generator $generator): int
{
Expand Down

0 comments on commit abcdebc

Please sign in to comment.