From c4673acdd132f1a7c920f652e9b16742cebf2821 Mon Sep 17 00:00:00 2001 From: Altamash Shaikh Date: Tue, 9 Apr 2024 11:27:29 +0530 Subject: [PATCH] Updated test --- .github/workflows/matomo-tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/matomo-tests.yml b/.github/workflows/matomo-tests.yml index 20b8d1f5..97cb86ac 100644 --- a/.github/workflows/matomo-tests.yml +++ b/.github/workflows/matomo-tests.yml @@ -64,6 +64,8 @@ jobs: with: lfs: true persist-credentials: false + - name: Install phpcs + run: sudo apt install php-codesniffer - name: running tests uses: matomo-org/github-action-tests@main with: @@ -83,11 +85,14 @@ jobs: with: lfs: false persist-credentials: false + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: php-version: '7.2' tools: cs2pr - name: Check PHP code styles id: phpcs - run: ./vendor/bin/phpcs --report-full --report-checkstyle=plugins/GoogleAnalyticsImporter/phpcs-report.xml plugins/GoogleAnalyticsImporter + run: phpcs --standard=PSR12 --report-full --ignore=vendor/* --report-checkstyle=phpcs-report.xml ./ - name: Show PHPCS results in PR if: ${{ always() && steps.phpcs.outcome == 'failure' }} run: cs2pr ./phpcs-report.xml