From 90a8ad19f5fc15a02d6087150758736d99270e26 Mon Sep 17 00:00:00 2001 From: Gregor Date: Wed, 20 Mar 2024 18:30:12 +0100 Subject: [PATCH] add PHP CodeSniffer test to github workflow jobs --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0eab58..a2be682 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,14 @@ jobs: - uses: actions/checkout@v3 - name: Check PHP syntax run: php -l src/ tests/ + # PHP coding standard validation + phpcs: + name: PHP coding standard + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check PHP coding standard + run: vendor/bin/phpcs # run PHP unit tests phpunit: name: PHPUnit tests