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
50 changes: 34 additions & 16 deletions .github/workflows/backend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
jobs:
cs-fix:
name: Run code style check
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
strategy:
matrix:
php:
- '8.3'
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ibexa/gh-workflows/actions/setup-composer-root-version@main

Expand All @@ -39,13 +39,13 @@

rector:
name: Run rector
runs-on: "ubuntu-22.04"
runs-on: "ubuntu-26.04"
strategy:
matrix:
php:
- '8.3'
- '8.4'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Setup PHP Action
uses: shivammathur/setup-php@v2
Expand All @@ -55,7 +55,7 @@
extensions: 'pdo_sqlite, gd'
tools: cs2pr

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

- uses: ibexa/gh-workflows/actions/composer-install@main
with:
Expand All @@ -67,20 +67,40 @@
- name: Run rector
run: vendor/bin/rector process --dry-run --ansi

deptrac:
name: Deptrac
runs-on: "ubuntu-26.04"
strategy:
fail-fast: false
matrix:
php:
- '8.4'
steps:
- uses: actions/checkout@v7

- uses: ibexa/gh-workflows/actions/composer-install@main

Check failure on line 81 in .github/workflows/backend-ci.yaml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use full commit SHA hash for this dependency.

See more on https://sonarcloud.io/project/issues?id=ibexa_admin-ui&issues=AZ_rE1_cKGViWGSJ1Qf9&open=AZ_rE1_cKGViWGSJ1Qf9&pullRequest=2000
with:
gh-client-id: ${{ secrets.AUTOMATION_CLIENT_ID }}
gh-client-secret: ${{ secrets.AUTOMATION_CLIENT_SECRET }}
satis-network-key: ${{ secrets.SATIS_NETWORK_KEY }}
satis-network-token: ${{ secrets.SATIS_NETWORK_TOKEN }}

- name: Run deptrac
run: composer run-script deptrac

tests:
name: Tests
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
php:
- '8.3'
- '8.4'

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

- uses: ibexa/gh-workflows/actions/setup-composer-root-version@main

Expand Down Expand Up @@ -119,17 +139,16 @@
--health-timeout 5s
--health-retries 5
--tmpfs /var/lib/postgresql/data
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
timeout-minutes: 20

strategy:
matrix:
php:
- '8.3'
- '8.4'

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

- uses: ibexa/gh-workflows/actions/setup-composer-root-version@main

Expand Down Expand Up @@ -171,18 +190,17 @@
--health-timeout=5s
--health-retries=5
--tmpfs=/var/lib/mysql
runs-on: "ubuntu-24.04"
runs-on: "ubuntu-26.04"
timeout-minutes: 20

strategy:
fail-fast: false
matrix:
php:
- '8.3'
- '8.4'

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

- uses: ibexa/gh-workflows/actions/setup-composer-root-version@main

Expand All @@ -208,7 +226,7 @@
name: Notify Slack
needs: [cs-fix, tests, integration-tests-postgres, integration-tests-mysql]
if: always() && github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
steps:
- name: Determine overall result
id: result
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ on:
jobs:
frontend-test:
name: Frontend build test
runs-on: 'ubuntu-24.04'
runs-on: 'ubuntu-26.04'
timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v4
with:
node-version: '20'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ yarn-error.log
/vendor
/.php_cs.cache
/.php-cs-fixer.cache
/.deptrac.cache
package-lock.json
.DS_Store
.phpunit.result.cache
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"psr-4": {
"Ibexa\\AdminUi\\": "src/lib/",
"Ibexa\\Bundle\\AdminUi\\": "src/bundle/",
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/"
"Ibexa\\Contracts\\AdminUi\\": "src/contracts/",
"Ibexa\\InternalContracts\\AdminUi\\": "src/internal-contracts/"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -62,6 +63,7 @@
"require-dev": {
"ext-zip": "*",
"dama/doctrine-test-bundle": "^8.2",
"deptrac/deptrac": "^4.7",
"ibexa/behat": "~6.0.x-dev",
"ibexa/code-style": "~2.0.0",
"ibexa/doctrine-schema": "~6.0.x-dev",
Expand All @@ -87,6 +89,7 @@
"scripts": {
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",
"check-cs": "@fix-cs --dry-run",
"deptrac": "php vendor/bin/deptrac analyse",
"phpstan": "phpstan analyse",
"test-unit": "phpunit -c phpunit.xml",
"test-integration": "phpunit -c phpunit.integration.xml",
Expand All @@ -95,6 +98,9 @@
"@test-integration"
]
},
"scripts-descriptions": {
"deptrac": "Run Deptrac architecture testing"
},
"extra": {
"branch-alias": {
"dev-main": "6.0.x-dev"
Expand Down
28 changes: 28 additions & 0 deletions deptrac.baseline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
deptrac:
skip_violations:
Ibexa\Contracts\AdminUi\ContentType\ContentTypeFieldsByExpressionServiceInterface:
- Ibexa\AdminUi\Exception\FieldTypeExpressionParserException
Ibexa\Contracts\AdminUi\Event\ContentProxyCreateEvent:
- Ibexa\AdminUi\Event\Options
Ibexa\Contracts\AdminUi\Event\ContentProxyTranslateEvent:
- Ibexa\AdminUi\Event\Options
Ibexa\Contracts\AdminUi\Event\FieldDefinitionMappingEvent:
- Ibexa\AdminUi\Form\Data\FieldDefinitionData
Ibexa\Contracts\AdminUi\Menu\AbstractActionBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
- Ibexa\AdminUi\Specification\ContentIsUser
Ibexa\Contracts\AdminUi\Menu\AbstractBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
Ibexa\Contracts\AdminUi\Menu\AbstractFormContextMenuBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
Ibexa\Contracts\AdminUi\Menu\CopyFormContextMenuBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
Ibexa\Contracts\AdminUi\Menu\CreateFormContextMenuBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
Ibexa\Contracts\AdminUi\Menu\UpdateFormContextMenuBuilder:
- Ibexa\AdminUi\Menu\Event\ConfigureMenuEvent
Ibexa\Contracts\AdminUi\Tab\AbstractEventDispatchingTab:
- Ibexa\AdminUi\Tab\Event\TabEvents
- Ibexa\AdminUi\Tab\Event\TabViewRenderEvent
Ibexa\Contracts\AdminUi\UI\Action\FormUiActionMapperInterface:
- Ibexa\AdminUi\UI\Action\UiActionEvent
37 changes: 37 additions & 0 deletions deptrac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
imports:
- deptrac.baseline.yaml

deptrac:
paths:
- ./src
- ./tests
layers:
- name: Bundle
collectors:
- type: directory
value: src/bundle/.*
- type: directory
value: src/lib/.*
- name: Contracts
collectors:
- type: directory
value: src/contracts/.*
- name: InternalContracts
collectors:
- type: directory
value: src/internal-contracts/.*
- name: Test
collectors:
- type: directory
value: tests/.*
ruleset:
Bundle:
- Contracts
- InternalContracts
Contracts: ~
InternalContracts:
- Contracts
Test:
- Bundle
- Contracts
- InternalContracts
Empty file added src/internal-contracts/.gitkeep
Empty file.