Skip to content

Commit

Permalink
Test build phar.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Mar 6, 2024
1 parent c556166 commit 8690505
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ jobs:
- name: Install dependencies
run: composer install

- name: Check composer version
run: composer --version

- name: Build PHAR
run: composer build

Expand Down
4 changes: 2 additions & 2 deletions src/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
use GitWrapper\GitWrapper;
use DrevOps\GitArtifact\Commands\ArtifactCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Filesystem\Filesystem as FileSystem;

$application = new Application();
$gitWrapper = new GitWrapper();
$fileSystem = new Filesystem();
$fileSystem = new FileSystem();
$command = new ArtifactCommand($gitWrapper, $fileSystem);
$application->add($command);
$application->setDefaultCommand((string) $command->getName(), true);
Expand Down

0 comments on commit 8690505

Please sign in to comment.