Skip to content

Commit 2fd125c

Browse files
committed
Add ext-sodium and use local phpcs
1 parent 0c122ad commit 2fd125c

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/php.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
php-version: ['8.3', '8.4', '8.5']
2323

24-
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.1
24+
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.2
2525
with:
2626
php-version: ${{ matrix.php-version }}
2727

@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232

33-
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.11.1
33+
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.11.2
3434
with:
3535
enable_eslinter: false
3636
enable_jsonlinter: true
@@ -53,7 +53,8 @@ jobs:
5353
uses: shivammathur/setup-php@v2
5454
with:
5555
php-version: ${{ matrix.php-versions }}
56-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, soap, spl, xml
56+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
57+
pcre, posix, session, soap, sodium, spl, xml
5758
tools: composer
5859
ini-values: error_reporting=E_ALL
5960
coverage: pcov
@@ -115,7 +116,8 @@ jobs:
115116
uses: shivammathur/setup-php@v2
116117
with:
117118
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, soap, spl, xml, zip
119+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
120+
pcre, session, soap, sodium, spl, xml, zip
119121
tools: composer
120122
ini-values: error_reporting=E_ALL
121123
coverage: none
@@ -162,8 +164,9 @@ jobs:
162164
with:
163165
# Should be the higest supported version, so we can use the newest tools
164166
php-version: '8.5'
165-
tools: composer, composer-require-checker, composer-unused, phpcs
166-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, soap, spl, xml
167+
tools: composer, composer-require-checker, composer-unused
168+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
169+
pcre, posix, session, soap, sodium, spl, xml
167170

168171
- name: Setup problem matchers for PHP
169172
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -193,7 +196,7 @@ jobs:
193196
run: composer-unused
194197

195198
- name: PHP Code Sniffer
196-
run: phpcs
199+
run: vendor/bin/phpcs
197200

198201
- name: PHPStan
199202
run: |
@@ -214,7 +217,8 @@ jobs:
214217
with:
215218
# Should be the lowest supported version
216219
php-version: '8.3'
217-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, soap, spl, xml
220+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl,\
221+
pcre, posix, session, soap, sodium, spl, xml
218222
tools: composer
219223
coverage: none
220224

0 commit comments

Comments
 (0)