Update GitHub workflows

This commit is contained in:
Sebastian Meyer 2024-09-07 21:29:28 +02:00
parent 41886ec2d6
commit 3dfbd1ba2f
5 changed files with 20 additions and 9 deletions

View File

@ -30,7 +30,7 @@ jobs:
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
path: 'doc/' path: doc/
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment

View File

@ -30,6 +30,6 @@ jobs:
- name: Run PHPCS - name: Run PHPCS
uses: php-actions/phpcs@v1 uses: php-actions/phpcs@v1
with: with:
php_version: "8.1"
path: src/ path: src/
php_version: "8.1"
standard: phpcs.xml.dist standard: phpcs.xml.dist

View File

@ -23,15 +23,19 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Environment - name: Setup Environment
uses: shivammathur/setup-php@v2 uses: php-actions/composer@v6
with: with:
php-version: "8.1" command: update
coverage: none php_version: "8.1"
tools: phpmd
- name: Run PHPMD - name: Run PHP Mess Detector
run: phpmd . sarif codesize --reportfile phpmd-results.sarif uses: php-actions/phpmd@v1
continue-on-error: true with:
path: src/
php_version: "8.1"
ruleset: .phpmd.dist.xml
output: sarif
reportfile: phpmd-results.sarif
- name: Upload Analysis Results - name: Upload Analysis Results
uses: github/codeql-action/upload-sarif@v3 uses: github/codeql-action/upload-sarif@v3

View File

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

View File

@ -22,6 +22,12 @@ jobs:
- name: Checkout Source Code - name: Checkout Source Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Environment
uses: php-actions/composer@v6
with:
command: update
php_version: "8.1"
- name: Run Psalm - name: Run Psalm
uses: docker://ghcr.io/psalm/psalm-github-actions uses: docker://ghcr.io/psalm/psalm-github-actions
with: with: