Skip to content

Commit 1bc702a

Browse files
committed
rc-2.7.0
1 parent 69bc0a9 commit 1bc702a

27 files changed

+155
-57
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
171171
- name: Get Time
172172
id: time
173-
uses: nanzm/get-time-action@v1.1
173+
uses: nanzm/get-time-action@v2.0
174174
with:
175175
timeZone: 1
176176
format: 'DD-MM-YYYY HH:mm:ss'
@@ -183,7 +183,7 @@ jobs:
183183
prefix='rc-'
184184
version=${branch#"$prefix"}
185185
echo $version
186-
echo "::set-output name=version::${version}"
186+
echo "version=$version" >> $GITHUB_OUTPUT
187187
188188
- name: Check Version
189189
run: echo ${{ steps.version_id.outputs.version }} && echo ${{ steps.time.outputs.time }}

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ Dummy.php
2525
src/dummy/
2626

2727

28-
# Tests directory
29-
testsDir/src
30-
testsDir/app
31-
testsDir/vendor
32-
testsDir/*.yml
3328
/githooks.yml
29+
/githooks.php
30+
3431

3532
tools/tmp/
3633

app/Commands/CreateConfigurationFileCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ protected function copyFile(string $origin, string $destiny): int
5353
$this->printer->error("Failed to copy $origin to $destiny");
5454
return 1;
5555
} catch (\Throwable $th) {
56+
// dd($th->getMessage());
5657
$this->printer->error("Failed to copy $origin to $destiny");
5758
return 1;
5859
}

builds/githooks

13.1 KB
Binary file not shown.

builds/php7.1/githooks

441 Bytes
Binary file not shown.

builds/php7.3/githooks

5.83 KB
Binary file not shown.

src/Build/Build.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function getTarName(): string
8787
case '8.1':
8888
case '8.2':
8989
case '8.3':
90+
case '8.4':
9091
$tarName = 'githooks-8.1.tar';
9192
break;
9293
default:

src/ConfigurationFile/Exception/ParseConfigurationFileException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Envuelve una Symfony\Component\Yaml\Exception\ParseException
99
*/
10-
class ParseConfigurationFileException extends \RuntimeException implements ConfigurationFileInterface
10+
class ParseConfigurationFileException extends \RuntimeException
1111
{
1212
public static function forMessage(string $message): ParseConfigurationFileException
1313
{

tests/ReleaseTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ protected function setUp(): void
5555
protected function tearDown(): void
5656
{
5757
$this->deleteDirStructure();
58-
if (file_exists('githooks.yml')) {
59-
unlink('githooks.yml');
60-
}
58+
@unlink('githooks.php');
59+
@unlink('githooks.yml');
60+
shell_exec('git restore -- ' . self::TESTS_PATH . "/.gitignore");
6161
}
6262

6363
protected function hiddenConsoleOutput(): void

tests/System/Commands/CheckConfigurationFileCommandTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,18 @@ function it_not_founds_configuration_file()
107107
/** @test */
108108
function it_check_the_config_file_pass_as_argument()
109109
{
110+
$a = 10;
110111
// valid file in custom path
111112
$configFilePath = 'custom/path';
112113
$this->configurationFileBuilder->buildInFileSystem($configFilePath);
113114

114-
// file with erros in root path
115+
// file with errors in root path
115116
$this->configurationFileBuilder
116117
->setTools([])
117118
->setOptions(['invent option' => 1])
118119
->buildInFileSystem();
119120

120-
$this->artisan("conf:check --config custom/path/githooks.yml")
121+
$this->artisan("conf:check --config custom/path/githooks.php")
121122
->assertExitCode(0)
122123
->expectsTable(['Options', 'Values'], [['execution', 'full'], ['processes', 1]])
123124
->expectsOutput('The configuration file has the correct format.')

0 commit comments

Comments
 (0)