Skip to content

Commit 587a79f

Browse files
authored
Fix broken Symfony command (#31)
* Ensure examples are sync in CI * Fix broken Symfony command
1 parent 259320d commit 587a79f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
with:
4242
dependency-versions: ${{ matrix.dependency-versions }}
4343

44+
- name: Ensure sync
45+
run: |
46+
wget https://docs.github.com/public/fpt/schema.docs.graphql -O examples/schema.docs.graphql
47+
bin/graphql-client-code-generator --config=examples/config.php --config=tests/config.php --ensure-sync
48+
4449
- name: Run tests
4550
run: vendor/bin/phpunit
4651

bin/graphql-client-code-generator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ if ($input->getFirstArgument() === null) {
4141

4242
$application = new Application('graphql-client-code-generator', '1.0.0');
4343

44-
$application->addCommand(new Command()->setCode(new GenerateCommand(new Filesystem())));
44+
$application->addCommand(new Command('generate')->setCode(new GenerateCommand(new Filesystem())));
4545
$application->run($input);

0 commit comments

Comments
 (0)