From 4937a8d2c983be2ceea494596bb66610477d8d63 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Sat, 5 Sep 2026 20:36:51 +0200 Subject: [PATCH 1/3] [GHA] Updated GitHub Actions workflows to latest versions and standards - Renamed ci.yaml to backend-ci.yaml, renamed the workflow to "Backend CI" and added a bare workflow_dispatch trigger. - Bumped actions/checkout from v4 to v7. - Standardized the runner to ubuntu-26.04 (was ubuntu-22.04). - Replaced shivammathur/setup-php + ramsey/composer-install with the shared ibexa/gh-workflows/actions/composer-install action, passing php-version from the matrix and the automation/Satis secrets. The dropped setup-php inputs (pdo_sqlite, gd / coverage none / cs2pr) and ramsey inputs (dependency-versions highest, --prefer-dist --no-progress --no-suggest) match the shared action's defaults. - Guarded the check-cs | cs2pr pipe with set -euo pipefail so a php-cs-fixer failure is no longer masked by cs2pr's exit code. Co-Authored-By: Claude Fable 5 --- .github/workflows/backend-ci.yaml | 46 ++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 47 ------------------------------- 2 files changed, 46 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/backend-ci.yaml delete mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/backend-ci.yaml b/.github/workflows/backend-ci.yaml new file mode 100644 index 0000000..b23b770 --- /dev/null +++ b/.github/workflows/backend-ci.yaml @@ -0,0 +1,46 @@ +name: Backend CI + +on: + push: + branches: + - '[0-9]+.[0-9]+' + - main + pull_request: ~ + workflow_dispatch: ~ + +jobs: + tests: + name: Tests + runs-on: "ubuntu-26.04" + timeout-minutes: 5 + + strategy: + fail-fast: false + matrix: + php: + - '7.4' + - '8.0' + - '8.1' + + steps: + - 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 }} + satis-network-key: ${{ secrets.SATIS_NETWORK_KEY }} + satis-network-token: ${{ secrets.SATIS_NETWORK_TOKEN }} + + - name: Run PHPStan analysis + run: composer run-script phpstan + + - name: Run tests suite + run: composer run-script test + + - name: Run code style check + shell: bash + run: | + set -euo pipefail + composer run-script check-cs -- --format=checkstyle | cs2pr diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 3decb92..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: CI - -on: - push: - branches: - - '[0-9]+.[0-9]+' - - main - pull_request: ~ - -jobs: - tests: - name: Tests - runs-on: "ubuntu-22.04" - timeout-minutes: 5 - - strategy: - fail-fast: false - matrix: - php: - - '7.4' - - '8.0' - - '8.1' - - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP Action - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - extensions: pdo_sqlite, gd - tools: cs2pr - - - uses: ramsey/composer-install@v3 - with: - dependency-versions: "highest" - composer-options: "--prefer-dist --no-progress --no-suggest" - - - name: Run PHPStan analysis - run: composer run-script phpstan - - - name: Run tests suite - run: composer run-script test - - - name: Run code style check - run: composer run-script check-cs -- --format=checkstyle | cs2pr From 3cc3d7e07f3f6c715c54b8e7120da93e21ea59ad Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Sat, 5 Sep 2026 20:36:51 +0200 Subject: [PATCH 2/3] [GHA] Added missing workflows from bundle-generator skeleton Copied verbatim from the ibexa-oss skeleton: - .github/workflows/pr-check.yaml - .github/workflows/release.yaml - .github/workflows/reviewers.yaml Co-Authored-By: Claude Fable 5 --- .github/workflows/pr-check.yaml | 12 ++++++++++++ .github/workflows/release.yaml | 13 +++++++++++++ .github/workflows/reviewers.yaml | 15 +++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 .github/workflows/pr-check.yaml create mode 100644 .github/workflows/release.yaml create mode 100644 .github/workflows/reviewers.yaml diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml new file mode 100644 index 0000000..d3413dc --- /dev/null +++ b/.github/workflows/pr-check.yaml @@ -0,0 +1,12 @@ +name: PR check +on: + pull_request: + types: + - opened + - synchronize + - reopened + - edited + +jobs: + test-base-branch: + uses: ibexa/gh-workflows/.github/workflows/pr-check.yml@main diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..beedd0c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,13 @@ +name: Call Automatic Changelog Generator for tag Workflow + +on: + push: + tags: + - 'v*' + - '!v*-alpha*' + +jobs: + create_release_for_tag: + uses: ibexa/gh-workflows/.github/workflows/release_bundle.yml@main + secrets: + JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} diff --git a/.github/workflows/reviewers.yaml b/.github/workflows/reviewers.yaml new file mode 100644 index 0000000..0c55d2d --- /dev/null +++ b/.github/workflows/reviewers.yaml @@ -0,0 +1,15 @@ +name: On PR Review Requested + +on: + pull_request: + types: [review_requested] + +jobs: + call-expand-team-reviewers: + if: ${{ github.event.requested_team }} + uses: ibexa/gh-workflows/.github/workflows/expand-team-reviewers.yml@main + with: + requested_team: ${{ github.event.requested_team.slug }} + pull_request_number: ${{ github.event.pull_request.number }} + repository: ${{ github.repository }} + secrets: inherit From 4b921c90e5d124370c12b048edeb534b3ba1630f Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Sat, 5 Sep 2026 20:54:57 +0200 Subject: [PATCH 3/3] [GHA] Dropped the release workflow ibexa/code-style is released manually, relying on GitHub's built-in release notes generator; the skeleton release workflow is not wanted here. --- .github/workflows/release.yaml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index beedd0c..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: Call Automatic Changelog Generator for tag Workflow - -on: - push: - tags: - - 'v*' - - '!v*-alpha*' - -jobs: - create_release_for_tag: - uses: ibexa/gh-workflows/.github/workflows/release_bundle.yml@main - secrets: - JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}