From a804c0206ee8e03d7ae8d6fdfaf5148bfe48c569 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 13 May 2022 11:45:32 +0200 Subject: [PATCH] Install phpcs via `shivammathur/setup-php` Apparently the previously used actions uses an out of date phpcs. --- .github/workflows/codestyle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 399e826..0e6ce28 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.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: -- 2.20.1