Skip to content

Commit 0340a0f

Browse files
authored
Fix Pest installation (#397)
* Fix Pest installation fixes #395 `vendor/bin/pest` doesn't have `--no-ansi` and `--quite` options. Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 2894951 commit 0340a0f

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- *.x
7+
- '*.x'
88
pull_request:
99
schedule:
1010
- cron: '0 0 * * *'

src/NewCommand.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Filesystem\Filesystem;
66
use Illuminate\Support\Composer;
77
use Illuminate\Support\ProcessUtils;
8+
use Illuminate\Support\Str;
89
use RuntimeException;
910
use Symfony\Component\Console\Command\Command;
1011
use Symfony\Component\Console\Input\InputArgument;
@@ -815,11 +816,7 @@ protected function runCommands($commands, InputInterface $input, OutputInterface
815816
{
816817
if (! $output->isDecorated()) {
817818
$commands = array_map(function ($value) {
818-
if (str_starts_with($value, 'chmod')) {
819-
return $value;
820-
}
821-
822-
if (str_starts_with($value, 'git')) {
819+
if (Str::startsWith($value, ['chmod', 'git', $this->phpBinary().' ./vendor/bin/pest'])) {
823820
return $value;
824821
}
825822

@@ -829,11 +826,7 @@ protected function runCommands($commands, InputInterface $input, OutputInterface
829826

830827
if ($input->getOption('quiet')) {
831828
$commands = array_map(function ($value) {
832-
if (str_starts_with($value, 'chmod')) {
833-
return $value;
834-
}
835-
836-
if (str_starts_with($value, 'git')) {
829+
if (Str::startsWith($value, ['chmod', 'git', $this->phpBinary().' ./vendor/bin/pest'])) {
837830
return $value;
838831
}
839832

0 commit comments

Comments
 (0)