diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aff4eb1..ea5829b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,9 +43,16 @@ jobs: composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction echo "${PWD}/mu-plugins/vendor/bin" >> $GITHUB_PATH - - name: Lint PHP + - name: Install PHP_CodeSniffer run: | - BASE_REF=${{ github.base_ref }} php .github/bin/phpcs-branch.php + curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar + php phpcs.phar --version + + - uses: thenabeel/action-phpcs@v8 + with: + files: "**.php" + phpcs_path: php phpcs.phar + standard: phpcs.xml phpunit: name: PHP Unit Tests