Add GitHub workflows
This commit is contained in:
parent
e6ea34c151
commit
b3585777a4
|
@ -4,6 +4,7 @@ updates:
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
versioning-strategy: "increase-if-necessary"
|
||||||
assignees:
|
assignees:
|
||||||
- "sebastian-meyer"
|
- "sebastian-meyer"
|
||||||
labels: [ ]
|
labels: [ ]
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: PHP Code Sniffer
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
PHPCS:
|
||||||
|
name: PHPCS Scanner
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
actions: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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 PHPCS
|
||||||
|
uses: php-actions/phpcs@v1
|
||||||
|
with:
|
||||||
|
php_version: "8.1"
|
||||||
|
path: src/
|
||||||
|
standard: phpcs.xml.dist
|
|
@ -0,0 +1,35 @@
|
||||||
|
name: Psalm Static Analyzer
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Psalm:
|
||||||
|
name: Psalm Scanner
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
actions: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Run Psalm
|
||||||
|
uses: docker://ghcr.io/psalm/psalm-github-actions
|
||||||
|
with:
|
||||||
|
security_analysis: true
|
||||||
|
report_file: psalm-results.sarif
|
||||||
|
|
||||||
|
- name: Upload Analysis Results
|
||||||
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
|
with:
|
||||||
|
sarif_file: psalm-results.sarif
|
||||||
|
wait-for-processing: true
|
Loading…
Reference in New Issue