66# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
77# SPDX-License-Identifier: MIT
88
9- name : Lint php
9+ name : Lint
1010
1111on : pull_request
1212
1313permissions :
1414 contents : read
1515
1616concurrency :
17- group : lint-php- ${{ github.head_ref || github.run_id }}
17+ group : lint-${{ github.head_ref || github.run_id }}
1818 cancel-in-progress : true
1919
2020jobs :
2121 matrix :
2222 runs-on : ubuntu-latest-low
23+ name : Determine PHP version
2324 outputs :
2425 php-versions : ${{ steps.versions.outputs.php-versions }}
2526 steps :
26- - name : Checkout app
27- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
28- - name : Get version matrix
27+ - name : Checkout
28+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
29+ with :
30+ persist-credentials : false
31+
32+ - name : Get PHP version
2933 id : versions
30- uses : icewind1991/nextcloud-version-matrix@58becf3b4bb6dc6cef677b15e2fd8e7d48c0908f # v1.0.0
34+ uses : icewind1991/nextcloud-version-matrix@8a7bac6300b2f0f3100088b297995a229558ddba # v1.3.2
3135
32- php- lint :
36+ lint :
3337 runs-on : ubuntu-latest
3438 needs : matrix
3539 strategy :
3640 matrix :
37- php-versions : ${{fromJson(needs.matrix.outputs.php-versions)}}
38-
39- name : php-lint
40-
41+ php-versions : ${{ fromJson(needs.matrix.outputs.php-versions) }}
42+ name : PHP-${{ matrix.php-versions }}
4143 steps :
4244 - name : Checkout
43- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
45+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
46+ with :
47+ persist-credentials : false
4448
45- - name : Set up php ${{ matrix.php-versions }}
46- uses : shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31 .0
49+ - name : Set up php${{ matrix.php-versions }}
50+ uses : shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37 .0
4751 with :
4852 php-version : ${{ matrix.php-versions }}
4953 extensions : bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite
@@ -52,19 +56,17 @@ jobs:
5256 env :
5357 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5458
59+ - name : Install dependencies
60+ run : composer i
61+
5562 - name : Lint
5663 run : composer run lint
5764
5865 summary :
59- permissions :
60- contents : none
6166 runs-on : ubuntu-latest-low
62- needs : php-lint
63-
67+ needs : lint
6468 if : always()
65-
66- name : php-lint-summary
67-
69+ name : Lint summary
6870 steps :
69- - name : Summary status
70- run : if ${{ needs.php- lint.result != ' success' && needs.php-lint.result != 'skipped' }} ; then exit 1; fi
71+ - name : Check lint status
72+ run : if [ " ${{ needs.lint.result }}" != " success" ] ; then exit 1; fi
0 commit comments