Install phpcs via `shivammathur/setup-php`
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 13 May 2022 09:45:32 +0000 (11:45 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 25 May 2022 15:20:43 +0000 (17:20 +0200)
Apparently the previously used actions uses an out of date phpcs.

.github/workflows/codestyle.yml

index 399e8263e5979a4d58e6e86f2a7262e8f527625b..0e6ce289b6f15f4ed78c1294ff753b9506718dcd 100644 (file)
@@ -12,14 +12,14 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v3
-    - name: phpcs
-      uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495
     - name: Setup PHP with tools
       uses: shivammathur/setup-php@v2
       with:
         php-version: '8.1'
         extensions: ctype, dom, exif, gd, gmp, hash, intl, json, libxml, mbstring, opcache, pcre, pdo, pdo_mysql, zlib
-        tools: php-cs-fixer
+        tools: cs2pr, phpcs, php-cs-fixer
+    - name: phpcs
+      run: phpcs -n -q --report=checkstyle | cs2pr
     - name: php-cs-fixer
       run: php-cs-fixer fix --dry-run --diff
   ts: