diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 558e171..c5a60f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,11 @@ jobs: with: dependency-versions: ${{ matrix.dependency-versions }} + - name: Ensure sync + run: | + wget https://docs.github.com/public/fpt/schema.docs.graphql -O examples/schema.docs.graphql + bin/graphql-client-code-generator --config=examples/config.php --config=tests/config.php --ensure-sync + - name: Run tests run: vendor/bin/phpunit diff --git a/bin/graphql-client-code-generator b/bin/graphql-client-code-generator index 7228b4a..0b894ba 100755 --- a/bin/graphql-client-code-generator +++ b/bin/graphql-client-code-generator @@ -41,5 +41,5 @@ if ($input->getFirstArgument() === null) { $application = new Application('graphql-client-code-generator', '1.0.0'); -$application->addCommand(new Command()->setCode(new GenerateCommand(new Filesystem()))); +$application->addCommand(new Command('generate')->setCode(new GenerateCommand(new Filesystem()))); $application->run($input);