Skip to content

Commit db7ee55

Browse files
authored
tidy Gt->GT (#75)
* ci: update ci * ci: php 8.3+ * build: composer update * tidy: Gt->GT
1 parent da9e915 commit db7ee55

15 files changed

Lines changed: 69 additions & 76 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ on:
66

77
permissions:
88
contents: read
9+
actions: read
910

1011
jobs:
1112
composer:
1213
runs-on: ubuntu-latest
1314
strategy:
1415
matrix:
15-
php: [ 8.2, 8.3, 8.4, 8.5 ]
16+
php: [ 8.3, 8.4, 8.5 ]
1617

1718
steps:
1819
- uses: actions/checkout@v6
@@ -37,13 +38,14 @@ jobs:
3738
with:
3839
name: build-artifact-${{ matrix.php }}
3940
path: /tmp/github-actions
41+
retention-days: 1
4042

4143
phpstan:
4244
runs-on: ubuntu-latest
4345
needs: [ composer ]
4446
strategy:
4547
matrix:
46-
php: [ 8.2, 8.3, 8.4, 8.5 ]
48+
php: [ 8.3, 8.4, 8.5 ]
4749

4850
steps:
4951
- uses: actions/download-artifact@v4
@@ -67,7 +69,7 @@ jobs:
6769
needs: [ composer ]
6870
strategy:
6971
matrix:
70-
php: [ 8.2, 8.3, 8.4, 8.5 ]
72+
php: [ 8.3, 8.4, 8.5 ]
7173

7274
steps:
7375
- uses: actions/download-artifact@v4
@@ -91,7 +93,7 @@ jobs:
9193
needs: [ composer ]
9294
strategy:
9395
matrix:
94-
php: [ 8.2, 8.3, 8.4, 8.5 ]
96+
php: [ 8.3, 8.4, 8.5 ]
9597

9698
steps:
9799
- uses: actions/download-artifact@v4
@@ -108,21 +110,3 @@ jobs:
108110
php_version: ${{ matrix.php }}
109111
path: src/
110112
standard: phpcs.xml
111-
112-
remove_old_artifacts:
113-
runs-on: ubuntu-latest
114-
115-
permissions:
116-
actions: write
117-
118-
steps:
119-
- name: Remove old artifacts for prior workflow runs on this repository
120-
env:
121-
GH_TOKEN: ${{ github.token }}
122-
run: |
123-
gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
124-
while read id
125-
do
126-
echo -n "Deleting artifact ID $id ... "
127-
gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
128-
done <artifact-id-list.txt

bin/gt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<?php
33
use Gt\Cli\Application;
44
use Gt\Cli\Argument\ArgumentList;
5-
use Gt\GtCommand\Command\AddCommand;
6-
use Gt\GtCommand\Command\BuildCommand;
7-
use Gt\GtCommand\Command\CreateCommand;
8-
use Gt\GtCommand\Command\MigrateCommand;
9-
use Gt\GtCommand\Command\ServeCommand;
10-
use Gt\GtCommand\Command\CronCommand;
11-
use Gt\GtCommand\Command\RunCommand;
12-
use Gt\GtCommand\Command\DeployCommand;
5+
use GT\GtCommand\Command\AddCommand;
6+
use GT\GtCommand\Command\BuildCommand;
7+
use GT\GtCommand\Command\CreateCommand;
8+
use GT\GtCommand\Command\MigrateCommand;
9+
use GT\GtCommand\Command\ServeCommand;
10+
use GT\GtCommand\Command\CronCommand;
11+
use GT\GtCommand\Command\RunCommand;
12+
use GT\GtCommand\Command\DeployCommand;
1313

1414
foreach([ __DIR__ . "/../../..", __DIR__ . "/../vendor" ] as $vendor) {
1515
$autoload = "$vendor/autoload.php";

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@
2121

2222
"autoload": {
2323
"psr-4": {
24+
"GT\\GtCommand\\": "./src",
2425
"Gt\\GtCommand\\": "./src"
2526
}
2627
},
2728
"autoload-dev": {
2829
"psr-4": {
30+
"GT\\GtCommand\\Test\\": "./test/phpunit",
2931
"Gt\\GtCommand\\Test\\": "./test/phpunit"
3032
}
3133
},
@@ -44,7 +46,7 @@
4446
"funding": [
4547
{
4648
"type": "github",
47-
"url": "https://github.com/sponsors/PhpGt"
49+
"url": "https://github.com/sponsors/phpgt"
4850
}
4951
]
5052
}

composer.lock

Lines changed: 39 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Blueprint/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Gt\GtCommand\Blueprint;
2+
namespace GT\GtCommand\Blueprint;
33

44
use Gt\Daemon\Process;
55
use SplFileObject;

src/Blueprint/BlueprintCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Gt\GtCommand\Blueprint;
2+
namespace GT\GtCommand\Blueprint;
33

44
use Countable;
55
use Iterator;

src/Command/AbstractProxyCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Gt\GtCommand\Command;
2+
namespace GT\GtCommand\Command;
33

44
use Gt\Cli\Argument\ArgumentValueList;
55
use Gt\Cli\Command\Command;

src/Command/AddCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Gt\GtCommand\Command;
2+
namespace GT\GtCommand\Command;
33

44
use Gt\Cli\Argument\ArgumentValueList;
55
use Gt\Cli\Command\Command;

src/Command/BuildCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2-
namespace Gt\GtCommand\Command;
2+
namespace GT\GtCommand\Command;
33

44
use Gt\Cli\Argument\ArgumentValueList;
5-
use Gt\Build\Cli\RunCommand as CliRunCommand;
5+
use GT\Build\Cli\RunCommand as CliRunCommand;
66

77
class BuildCommand extends AbstractProxyCommand {
88
public function __construct() {

src/Command/CreateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
2-
namespace Gt\GtCommand\Command;
2+
namespace GT\GtCommand\Command;
33

44
use Gt\Cli\Argument\ArgumentValue;
55
use Gt\Cli\Argument\ArgumentValueList;
66
use Gt\Cli\Command\Command;
77
use Gt\Cli\Parameter\NamedParameter;
88
use Gt\Cli\Parameter\Parameter;
99
use Gt\Cli\Stream;
10-
use Gt\GtCommand\Blueprint\BlueprintCollection;
10+
use GT\GtCommand\Blueprint\BlueprintCollection;
1111

1212
class CreateCommand extends Command {
1313
/**

0 commit comments

Comments
 (0)