From 1b8c3f82327a5824751db976217c891f3b94b320 Mon Sep 17 00:00:00 2001 From: Gregor Date: Wed, 7 Aug 2024 18:22:18 +0200 Subject: [PATCH] Add an action for PHP_CodeSniffer to GitHub workflow --- .github/workflows/php.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d4056a7..f2eadaf 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -78,3 +78,14 @@ jobs: run: | php vendor/bin/phpunit --coverage-clover clover.xml --coverage-text ./cc-test-reporter after-build -t clover --exit-code $? + 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"