Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/backend-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
name: CI
name: Backend CI

on:
push:
branches:
- main
- '[0-9]+.[0-9]+'
pull_request: ~
workflow_dispatch: ~

jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
strategy:
matrix:
php:
- '8.0'
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ibexa/gh-workflows/actions/composer-install@main
with:
php-version: ${{ matrix.php }}
gh-client-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
gh-client-secret: ${{ secrets.AUTOMATION_CLIENT_SECRET }}

- name: Run code style check
run: composer run-script check-cs -- --format=checkstyle | cs2pr
shell: bash
run: |
set -euo pipefail
composer run-script check-cs -- --format=checkstyle | cs2pr

tests:
name: Unit tests
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
timeout-minutes: 15

strategy:
Expand All @@ -41,10 +45,11 @@ jobs:
composer_options: [ "" ]

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ibexa/gh-workflows/actions/composer-install@main
with:
php-version: ${{ matrix.php }}
gh-client-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
gh-client-secret: ${{ secrets.AUTOMATION_CLIENT_SECRET }}

Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/pr-assign.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"ibexa/http-cache": "~4.6.0@dev",
"overblog/graphiql-bundle": "^0.2",
"phpspec/phpspec": "^7.5 || ^8.0",
"ibexa/code-style": "~1.2.0",
"ibexa/code-style": "~1.3.0",
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^9.5",
"symfony/phpunit-bridge": "^5.0"
Expand Down
1 change: 1 addition & 0 deletions src/bundle/Command/GeneratePlatformSchemaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\Command;

use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Resolver\DomainContentMutationResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Mutation\InputHandler\FieldType\RichText as RichTextInputHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Schema\Generator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;

use Ibexa\GraphQL\Schema\Generator;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/GraphQL/SchemaProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL;

/**
Expand Down
1 change: 1 addition & 0 deletions src/bundle/DependencyInjection/IbexaGraphQLExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL\DependencyInjection;

use Ibexa\Bundle\GraphQL\DependencyInjection\GraphQL\YamlSchemaProvider;
Expand Down
1 change: 1 addition & 0 deletions src/bundle/IbexaGraphQLBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Bundle\GraphQL;

use Ibexa\Bundle\GraphQL\DependencyInjection\Compiler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Mutation\InputHandler\FieldType\RichText;

interface RichTextInputConverter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Mutation\InputHandler;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Contracts\GraphQL\Schema\Domain\Content\Mapper\FieldDefinition;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/CachedContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/CachedContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/ContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/ContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\ContentType\ContentType;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/Exception/ArgumentsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader\Exception;

use Exception;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/Exception/NotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader\Exception;

use Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException as NotFoundApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/LocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Values\Content\Location;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/RepositoryContentTypeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\ContentTypeService;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/SearchContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Exceptions as ApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/DataLoader/SearchLocationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\DataLoader;

use Ibexa\Contracts\Core\Repository\Exceptions as ApiException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/EventListener/ArgumentsExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\EventListener;

use Ibexa\GraphQL\DataLoader\Exception\ArgumentsException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

class LogicException extends \LogicException
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/NoValidSiteaccessException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use Exception;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/UnsupportedFieldInputFormatException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use InvalidArgumentException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Exception/UnsupportedFieldTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Exception;

use InvalidArgumentException;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/QueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/SearchQueryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\LocationQuery;
Expand Down
1 change: 1 addition & 0 deletions src/lib/InputMapper/SearchQuerySortByMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\InputMapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Query;
Expand Down
1 change: 1 addition & 0 deletions src/lib/ItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL;

use Ibexa\Contracts\Core\Repository\Values\Content\Content;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mapper/ContentImageAssetMapperStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Field;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mapper/ImageAssetMapperStrategyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mapper;

use Ibexa\Contracts\Core\Repository\Values\Content\Field;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/BinaryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/FromHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib/Mutation/InputHandler/FieldType/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\GraphQL\Mutation\InputHandler\FieldType;

use Ibexa\Contracts\Core\FieldType\Value;
Expand Down
Loading