Update GitHub workflows
This commit is contained in:
parent
93abe20cc3
commit
d81226031c
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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: bin/ public/ 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue