Update GitHub workflows

This commit is contained in:
Sebastian Meyer 2024-09-07 18:52:38 +02:00
parent 93abe20cc3
commit d81226031c
5 changed files with 20 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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: bin/ public/ 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

View File

@ -32,4 +32,5 @@ jobs:
uses: php-actions/phpstan@v3
with:
path: src/
php_version: "8.1"
configuration: phpstan.dist.neon

View File

@ -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: