@@ -18,29 +18,16 @@ concurrency:
1818 cancel-in-progress : true
1919
2020jobs :
21- matrix :
22- runs-on : ubuntu-latest-low
23- outputs :
24- php-version : ${{ steps.versions.outputs.php-available-list }}
25- server-max : ${{ steps.versions.outputs.branches-max-list }}
26- steps :
27- - name : Checkout app
28- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29- with :
30- persist-credentials : false
31-
32- - name : Get version matrix
33- id : versions
34- uses : nextcloud-libraries/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
35-
36- changes :
21+ changes-and-matrix :
3722 runs-on : ubuntu-latest-low
3823 permissions :
3924 contents : read
4025 pull-requests : read
4126
4227 outputs :
4328 src : ${{ steps.changes.outputs.src }}
29+ php-version : ${{ steps.versions.outputs.php-available-list }}
30+ server-max : ${{ steps.versions.outputs.branches-max-list }}
4431
4532 steps :
4633 - uses : dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
@@ -60,17 +47,28 @@ jobs:
6047 - 'composer.json'
6148 - 'composer.lock'
6249
50+ - name : Checkout app
51+ if : steps.changes.outputs.src != 'false'
52+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
53+ with :
54+ persist-credentials : false
55+
56+ - name : Get version matrix
57+ if : steps.changes.outputs.src != 'false'
58+ id : versions
59+ uses : nextcloud-libraries/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
60+
6361 phpunit-oci :
6462 runs-on : ubuntu-latest
6563
66- needs : [ changes, matrix]
67- if : needs.changes.outputs.src != 'false'
64+ needs : changes-and- matrix
65+ if : needs.changes-and-matrix .outputs.src != 'false'
6866
6967 strategy :
7068 fail-fast : false
7169 matrix :
72- php-versions : ${{ fromJson(needs.matrix.outputs.php-version) }}
73- server-versions : ${{ fromJson(needs.matrix.outputs.server-max) }}
70+ php-versions : ${{ fromJson(needs.changes-and- matrix.outputs.php-version) }}
71+ server-versions : ${{ fromJson(needs.changes-and- matrix.outputs.server-max) }}
7472 oci-versions : ['18', '21', '23']
7573
7674 name : OCI ${{ matrix.oci-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
@@ -207,12 +205,12 @@ jobs:
207205 permissions :
208206 contents : none
209207 runs-on : ubuntu-latest-low
210- needs : [changes, phpunit-oci]
208+ needs : [changes-and-matrix , phpunit-oci]
211209
212210 if : always()
213211
214212 name : phpunit-oci-summary
215213
216214 steps :
217215 - name : Summary status
218- run : if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-oci.result != 'success' }}; then exit 1; fi
216+ run : if ${{ needs.changes-and-matrix .outputs.src != 'false' && needs.phpunit-oci.result != 'success' }}; then exit 1; fi
0 commit comments