From 3dfbd1ba2fa86cdbe053d890983fd274d35c771a Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Sat, 7 Sep 2024 21:29:28 +0200 Subject: [PATCH] Update GitHub workflows --- .github/workflows/pages.yml | 2 +- .github/workflows/phpcs.yml | 2 +- .github/workflows/phpmd.yml | 18 +++++++++++------- .github/workflows/phpstan.yml | 1 + .github/workflows/psalm.yml | 6 ++++++ 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 391870b..cb7ee11 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -30,7 +30,7 @@ jobs: - name: Upload Artifact uses: actions/upload-pages-artifact@v3 with: - path: 'doc/' + path: doc/ - name: Deploy to GitHub Pages id: deployment diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 351f907..603e873 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -30,6 +30,6 @@ jobs: - name: Run PHPCS uses: php-actions/phpcs@v1 with: - php_version: "8.1" path: src/ + php_version: "8.1" standard: phpcs.xml.dist diff --git a/.github/workflows/phpmd.yml b/.github/workflows/phpmd.yml index 9efa973..140d9e2 100644 --- a/.github/workflows/phpmd.yml +++ b/.github/workflows/phpmd.yml @@ -23,15 +23,19 @@ jobs: uses: actions/checkout@v4 - name: Setup Environment - uses: shivammathur/setup-php@v2 + uses: php-actions/composer@v6 with: - php-version: "8.1" - coverage: none - tools: phpmd + command: update + php_version: "8.1" - - name: Run PHPMD - run: phpmd . sarif codesize --reportfile phpmd-results.sarif - continue-on-error: true + - name: Run PHP Mess Detector + uses: php-actions/phpmd@v1 + with: + path: src/ + php_version: "8.1" + ruleset: .phpmd.dist.xml + output: sarif + reportfile: phpmd-results.sarif - name: Upload Analysis Results uses: github/codeql-action/upload-sarif@v3 diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 795fd42..0956ae0 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -32,4 +32,5 @@ jobs: uses: php-actions/phpstan@v3 with: path: src/ + php_version: "8.1" configuration: phpstan.dist.neon diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 6b5f5be..f6d0758 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -22,6 +22,12 @@ jobs: - name: Checkout Source Code uses: actions/checkout@v4 + - name: Setup Environment + uses: php-actions/composer@v6 + with: + command: update + php_version: "8.1" + - name: Run Psalm uses: docker://ghcr.io/psalm/psalm-github-actions with: