From f22f9ed86cbfdb4633f8c6a139e0040dc6ef2c80 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Tue, 24 Dec 2024 22:02:58 +0100 Subject: [PATCH] Fix PHPCS cs2pr setup Ref: https://github.com/staabm/annotate-pull-request-from-checkstyle?tab=readme-ov-file#example-githubaction-workflow --- .github/workflows/phpcs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index f11cd12103..12b280713e 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -22,13 +22,13 @@ jobs: name: PHPCS runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install dependencies - run: composer install --dev --prefer-dist --no-progress --no-suggest + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '7.2' tools: cs2pr + - name: Install dependencies + run: composer install --dev --prefer-dist --no-progress --no-suggest - name: Run phpcs run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr