From: Tim Düsterhus Date: Fri, 13 May 2022 09:45:32 +0000 (+0200) Subject: Install phpcs via `shivammathur/setup-php` X-Git-Tag: 5.5.0_Beta_3~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8851d3be7462c1d2ce613414143a6d75d9d1382;p=GitHub%2FWoltLab%2FWCF.git Install phpcs via `shivammathur/setup-php` Apparently the previously used actions uses an out of date phpcs. (cherry picked from commit c5cd836751c3fb357b8ddce52a95a83f3ac46347) --- diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index bdee5f657d..92202f496c 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -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.0' 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: