@@ -18,30 +18,15 @@ concurrency:
1818 cancel-in-progress : true
1919
2020jobs :
21- matrix :
22- runs-on : ubuntu-latest-low
23- outputs :
24- matrix : ${{ steps.versions.outputs.sparse-matrix }}
25- steps :
26- - name : Checkout app
27- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28- with :
29- persist-credentials : false
30-
31- - name : Get version matrix
32- id : versions
33- uses : nextcloud-libraries/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
34- with :
35- matrix : ' {"mysql-versions": ["8.4"]}'
36-
37- changes :
21+ changes-and-matrix :
3822 runs-on : ubuntu-latest-low
3923 permissions :
4024 contents : read
4125 pull-requests : read
4226
4327 outputs :
44- src : ${{ steps.changes.outputs.src}}
28+ src : ${{ steps.changes.outputs.src }}
29+ matrix : ${{ steps.versions.outputs.sparse-matrix }}
4530
4631 steps :
4732 - uses : dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
@@ -61,15 +46,28 @@ jobs:
6146 - 'composer.json'
6247 - 'composer.lock'
6348
49+ - name : Checkout app
50+ if : steps.changes.outputs.src != 'false'
51+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52+ with :
53+ persist-credentials : false
54+
55+ - name : Get version matrix
56+ if : steps.changes.outputs.src != 'false'
57+ id : versions
58+ uses : nextcloud-libraries/nextcloud-version-matrix@cd0211ffcef1065e2020cd579e4843b8746e7a58 # v1.3.3
59+ with :
60+ matrix : ' {"mysql-versions": ["8.4"]}'
61+
6462 phpunit-mysql :
6563 runs-on : ubuntu-latest
6664
67- needs : [ changes, matrix]
68- if : needs.changes.outputs.src != 'false'
65+ needs : changes-and- matrix
66+ if : needs.changes-and-matrix .outputs.src != 'false'
6967
7068 strategy :
7169 fail-fast : false
72- matrix : ${{ fromJson(needs.matrix.outputs.matrix) }}
70+ matrix : ${{ fromJson(needs.changes-and- matrix.outputs.matrix) }}
7371
7472 name : MySQL ${{ matrix.mysql-versions }} PHP ${{ matrix.php-versions }} Nextcloud ${{ matrix.server-versions }}
7573
@@ -104,7 +102,7 @@ jobs:
104102 path : apps/${{ env.APP_NAME }}
105103
106104 - name : Checkout teams dependency
107- uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
105+ uses : actions/checkout@@ 3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
108106 with :
109107 persist-credentials : false
110108 repository : nextcloud/circles
@@ -202,12 +200,12 @@ jobs:
202200 permissions :
203201 contents : none
204202 runs-on : ubuntu-latest-low
205- needs : [changes, phpunit-mysql]
203+ needs : [changes-and-matrix , phpunit-mysql]
206204
207205 if : always()
208206
209207 name : phpunit-mysql-summary
210208
211209 steps :
212210 - name : Summary status
213- run : if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi
211+ run : if ${{ needs.changes-and-matrix .outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi
0 commit comments