Skip to content

Commit

Permalink
Update phpcs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuconcioiu committed Jul 18, 2024
1 parent 19bcaae commit ac7e27a
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHPCS check
name: PHPCS

permissions:
actions: read
Expand All @@ -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

0 comments on commit ac7e27a

Please sign in to comment.