Skip to content

Commit

Permalink
Update cs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Dec 28, 2022
1 parent 3da12cb commit 6edf29c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,24 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.0'
tools: cs2pr
coverage: none

- name: 'Composer: set up PHPCS dependencies'
run: |
composer require --no-update squizlabs/php_codesniffer wp-coding-standards/wpcs phpcompatibility/phpcompatibility-wp dealerdirect/phpcodesniffer-composer-installer
composer config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"

- name: 'Run Composer Update'
run: |
Expand Down

0 comments on commit 6edf29c

Please sign in to comment.