Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
renatonascalves committed May 3, 2024
1 parent 16b26b1 commit c05a881
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/code-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,35 @@ name: Coding Standards
on: pull_request

jobs:
code-quality:
uses: wp-cli/.github/.github/workflows/reusable-code-quality.yml@main
tests:
name: PHPCS
runs-on: ubuntu-latest

steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none
tools: composer

- name: Validate Composer
run: composer validate --strict

- name: Install dependencies
uses: ramsey/composer-install@v2

- name: Run Linter
run: composer lint

- name: Run PHPCS
run: composer phpcs

0 comments on commit c05a881

Please sign in to comment.