Update GitHub workflows
This commit is contained in:
parent
93abe20cc3
commit
d81226031c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -32,4 +32,5 @@ jobs:
|
|||
uses: php-actions/phpstan@v3
|
||||
with:
|
||||
path: src/
|
||||
php_version: "8.1"
|
||||
configuration: phpstan.dist.neon
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue