diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 991e937..40f9d8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,3 +51,14 @@ jobs: # php_version: "${{ matrix.php-version }}" # configuration: "phpstan.neon" # path: "exceptions/ src/ tests/" + codesniffer: + runs-on: "ubuntu-latest" + steps: + - name: "git checkout" + uses: "actions/checkout@v3" + - name: "Install PHP_CodeSniffer" + run: "curl -OLf https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar" + - name: "check PHP_CodeSniffer version" + run: "php phpcs.phar --version" + - name: "PHP CodeSniffer" + run: "php phpcs.phar"