From 5792dfe971547144f88fac13a3b63ed353a81a8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 19 Apr 2021 14:13:48 +0200 Subject: [PATCH] Set-up php-cs-fixer using setup-php in codestyle workflow This allows us to easily install extensions. --- .github/workflows/codestyle.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index efe2ce387e..1bc4415a46 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -16,10 +16,14 @@ jobs: - uses: actions/checkout@v2 - name: phpcs uses: chekalsky/phpcs-action@e269c2f264f400adcda7c6b24c8550302350d495 - - name: php-cs-fixer - uses: docker://oskarstark/php-cs-fixer-ga + - name: Setup PHP with tools + uses: shivammathur/setup-php@v2 with: - args: --dry-run --diff-format udiff + php-version: '7.4' + extensions: ctype, dom, exif, gd, gmp, hash, intl, json, libxml, mbstring, opcache, pcre, pdo, pdo_mysql, zlib + tools: php-cs-fixer + - name: php-cs-fixer + run: php-cs-fixer fix --dry-run --diff-format udiff ts: name: TS Prettier runs-on: ubuntu-latest -- 2.20.1