From 0ecb8aea3ec6989b3b39581b000ae6bc2023b337 Mon Sep 17 00:00:00 2001 From: SebastianKrupinski Date: Thu, 15 Jan 2026 15:30:46 -0500 Subject: [PATCH] chore(ci): improve php test Signed-off-by: SebastianKrupinski --- .github/workflows/php-test.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/php-test.yml b/.github/workflows/php-test.yml index 373d5ba133..247768541a 100644 --- a/.github/workflows/php-test.yml +++ b/.github/workflows/php-test.yml @@ -4,8 +4,40 @@ name: PHP Tests on: pull_request jobs: + changes: + runs-on: ubuntu-latest-low + permissions: + contents: read + pull-requests: read + + outputs: + src: ${{ steps.changes.outputs.src}} + + steps: + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 + id: changes + continue-on-error: true + with: + filters: | + src: + - '.github/workflows/**' + - 'lib/**' + - 'appinfo/**' + - 'composer/**' + - 'templates/**' + - 'tests/php/**' + - 'composer.json' + - 'composer.lock' + - 'phpunit.integration.xml' + - 'phpunit.unit.xml' + - '**.php' + unit-tests: runs-on: ubuntu-latest + + needs: changes + if: needs.changes.outputs.src != 'false' + strategy: matrix: php-versions: [ '8.2', '8.3', '8.4', '8.5' ] @@ -53,6 +85,10 @@ jobs: integration-tests: runs-on: ubuntu-latest + + needs: changes + if: needs.changes.outputs.src != 'false' + strategy: matrix: php-versions: [ '8.2', '8.3', '8.4', '8.5' ]