From c999bcb072b58d3e02647985776798855a02c649 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Sun, 6 Sep 2026 15:06:30 +0200 Subject: [PATCH 1/2] [GHA] Updated GitHub Actions workflows to latest versions and standards - Renamed the CI workflow to Backend CI and added a bare workflow_dispatch trigger - Updated actions/checkout to v7 - Standardized runners to ubuntu-26.04 - Dropped non-existent main branch from push triggers in backend-ci and browser-tests workflows - Removed the deprecated pr-assign.yaml workflow - Passed the PHP version to the composer-install action explicitly (the implicit matrix.php fallback is kept only for backwards compatibility, IBX-11907) - Guarded the code style check against masked pipe failures with set -euo pipefail (IBX-11853) Co-Authored-By: Claude Fable 5.1 --- .github/workflows/backend-ci.yaml | 24 +++++++++++++++--------- .github/workflows/browser-tests.yaml | 1 - .github/workflows/pr-assign.yaml | 10 ---------- 3 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/pr-assign.yaml diff --git a/.github/workflows/backend-ci.yaml b/.github/workflows/backend-ci.yaml index 0b79a99..0017105 100644 --- a/.github/workflows/backend-ci.yaml +++ b/.github/workflows/backend-ci.yaml @@ -1,22 +1,22 @@ -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.1' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -28,17 +28,21 @@ jobs: - 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 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: Tests - runs-on: "ubuntu-24.04" + runs-on: "ubuntu-26.04" timeout-minutes: 10 strategy: @@ -50,7 +54,7 @@ jobs: - '8.4' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -62,6 +66,7 @@ jobs: - 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 }} @@ -79,7 +84,7 @@ jobs: integration-tests: name: Integration yests needs: tests - runs-on: "ubuntu-24.04" + runs-on: "ubuntu-26.04" timeout-minutes: 10 strategy: @@ -91,7 +96,7 @@ jobs: - '8.4' steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Setup PHP Action uses: shivammathur/setup-php@v2 @@ -103,6 +108,7 @@ jobs: - 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 }} diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index fd55caa..b5164b8 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -3,7 +3,6 @@ name: Browser tests on: push: branches: - - main - '[0-9]+.[0-9]+' pull_request: ~ diff --git a/.github/workflows/pr-assign.yaml b/.github/workflows/pr-assign.yaml deleted file mode 100644 index 302423e..0000000 --- a/.github/workflows/pr-assign.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: Assign Pull Request to maintainers - -on: - pull_request_target: - -jobs: - assign: - uses: ibexa/gh-workflows/.github/workflows/pr-assign.yml@main - secrets: - robot-token: ${{ secrets.EZROBOT_PAT }} From af23a1aac953e35d1b589a80a9c102a81669ebbe Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Wed, 9 Sep 2026 12:34:35 +0200 Subject: [PATCH 2/2] [GHA] Dropped setup-php steps made redundant by composer-install ibexa/gh-workflows/actions/composer-install@main runs shivammathur/setup-php itself, passing php-version, coverage, extensions and tools: cs2pr, so a job that also declares its own setup-php step configures PHP twice over. Removed 3 such step(s). Each one set exactly what the action already applies, so nothing had to move. --- .github/workflows/backend-ci.yaml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.github/workflows/backend-ci.yaml b/.github/workflows/backend-ci.yaml index 0017105..1d038e4 100644 --- a/.github/workflows/backend-ci.yaml +++ b/.github/workflows/backend-ci.yaml @@ -18,14 +18,6 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Setup PHP Action - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - extensions: 'pdo_sqlite, gd' - tools: cs2pr - - uses: ibexa/gh-workflows/actions/composer-install@main with: php-version: ${{ matrix.php }} @@ -56,14 +48,6 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Setup PHP Action - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - extensions: pdo_sqlite, gd - tools: cs2pr - - uses: ibexa/gh-workflows/actions/composer-install@main with: php-version: ${{ matrix.php }} @@ -98,14 +82,6 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Setup PHP Action - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - coverage: none - extensions: pdo_sqlite, gd - tools: cs2pr - - uses: ibexa/gh-workflows/actions/composer-install@main with: php-version: ${{ matrix.php }}