File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,40 @@ name: PHP Tests
44on : pull_request
55
66jobs :
7+ changes :
8+ runs-on : ubuntu-latest-low
9+ permissions :
10+ contents : read
11+ pull-requests : read
12+
13+ outputs :
14+ src : ${{ steps.changes.outputs.src}}
15+
16+ steps :
17+ - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
18+ id : changes
19+ continue-on-error : true
20+ with :
21+ filters : |
22+ src:
23+ - '.github/workflows/**'
24+ - 'lib/**'
25+ - 'appinfo/**'
26+ - 'composer/**'
27+ - 'templates/**'
28+ - 'tests/php/**'
29+ - 'composer.json'
30+ - 'composer.lock'
31+ - 'phpunit.integration.xml'
32+ - 'phpunit.unit.xml'
33+ - '**.php'
34+
735 unit-tests :
836 runs-on : ubuntu-latest
37+
38+ needs : changes
39+ if : needs.changes.outputs.src != 'false'
40+
941 strategy :
1042 matrix :
1143 php-versions : [ '8.2', '8.3', '8.4', '8.5' ]
5385
5486 integration-tests :
5587 runs-on : ubuntu-latest
88+
89+ needs : changes
90+ if : needs.changes.outputs.src != 'false'
91+
5692 strategy :
5793 matrix :
5894 php-versions : [ '8.2', '8.3', '8.4', '8.5' ]
You can’t perform that action at this time.
0 commit comments