From 7d6fcab6f4e8b5b26f4728b55aa9edca080da5b9 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Thu, 18 Jul 2024 23:29:05 +0200 Subject: [PATCH] Update phpcs.yml --- .github/workflows/phpcs.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index f4d2625406..4828d3a2b0 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -1,4 +1,4 @@ -name: PHPCS check +name: PHPCS permissions: actions: read @@ -15,20 +15,27 @@ permissions: on: pull_request: push: - branches: [ master ] + branches: [master] jobs: phpcs: name: PHPCS - runs-on: ubuntu-latest + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-version: ['7.2'] steps: - uses: actions/checkout@v2 - - name: Install dependencies - run: composer install --dev --prefer-dist --no-progress --no-suggest --ignore-platform-reqs - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '7.2' - tools: cs2pr - - name: Run phpcs - run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr + php-version: ${{ matrix.php-version }} + tools: composer:v2, cs2pr + - name: "Composer install" + run: | + composer install --dev --prefer-dist --no-progress --no-suggest + - name: PHPCS / PHP ${{ matrix.php-version }} + run: | + php -v + ./vendor/bin/phpcs -q --report=checkstyle | cs2pr