Skip to content

Commit a19640a

Browse files
committed
Fix CI: add zip-extension for windows-build and use internal phpcs
1 parent e22b8fd commit a19640a

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/php.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
uses: shivammathur/setup-php@v2
116116
with:
117117
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
118+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
119119
tools: composer
120120
ini-values: error_reporting=E_ALL
121121
coverage: none
@@ -161,7 +161,7 @@ jobs:
161161
with:
162162
# Should be the higest supported version, so we can use the newest tools
163163
php-version: '8.4'
164-
tools: composer, composer-require-checker, composer-unused, phpcs, psalm
164+
tools: composer, composer-require-checker, composer-unused, psalm
165165
# optional performance gain for psalm: opcache
166166
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl, pcre, posix, spl, xml
167167

@@ -193,7 +193,7 @@ jobs:
193193
run: composer-unused
194194

195195
- name: PHP Code Sniffer
196-
run: phpcs
196+
run: vendor/bin/phpcs
197197

198198
- name: Psalm
199199
continue-on-error: true

phpcs.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
<file>templates</file>
1313
<file>tests</file>
1414

15+
<!-- Lines can be a little bit longer before they break the build -->
16+
<rule ref="Generic.Files.LineLength">
17+
<properties>
18+
<property name="lineLimit" value="120"/>
19+
<property name="absoluteLineLimit" value="130"/>
20+
</properties>
21+
22+
<!-- Exclude files with long lines that we cannot immediately fix -->
23+
<exclude-pattern>tests/src/Controller/DebugTest.php</exclude-pattern>
24+
</rule>
25+
1526
<!-- Use this to exclude paths. You can have multiple patterns -->
1627
<!--<exclude-pattern>*/tests/*</exclude-pattern>-->
1728
<!--<exclude-pattern>*/other/*</exclude-pattern>-->

tests/src/Controller/DebugTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ final class DebugTest extends TestCase
2828
/** @var string */
2929
protected static string $encoded = 'SAMLRequest=pVJNjxMxDP0ro9yn88FOtRu1lcpWiEoLVNvCgQtKE6eNlHGG2IHl35OZLmLZQy%2BcrNh%2Bz88vXpDq%2FSDXic%2F4CN8TEBdPvUeSU2EpUkQZFDmSqHogyVru1x8eZDur5RADBx28eAG5jlBEENkFFMV2sxTfzO0dmKa11namPuoc39hba%2BfqpqlbM6%2Fb5mZ%2B1LWtj6L4ApEycikyUYYTJdgisULOqbrpyqYt67tD28iulV33VRSbvI1DxRPqzDyQrCrAk0OYUYpWB4QnnqGvVN4fkJ2emitnhoocnjyU5E5YjnrXf6TfB6TUQ9xD%2FOE0fH58%2BEueHbHOv2Yn1w8eRneqPpiU68M5DxjfdIltqTRNWQNWJc8lDaLYPfv71qHJaq5be7w0kXx%2FOOzK3af9QawWI7ecrIqr%2F9HYAyujWL2SuKheDlhcbuljlrbd7IJ3%2BlfxLsRe8XXlY8aZ0k6tkqNCcvkzsuXeh5%2F3ERTDUnBMIKrVZeS%2FF7v6DQ%3D%3D';
3030

31+
3132
/**
3233
* Set up for each test.
3334
*/

0 commit comments

Comments
 (0)