internal(other): Pre-Alpha M1 #142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Mess Detector | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
PHPMD: | |
name: Run PHPMD scanning | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@2.31.1 | |
with: | |
php-version: 8.3 | |
coverage: none | |
tools: phpmd:2.15 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Run PHPMD | |
run: phpmd . sarif phpmd.xml --reportfile phpmd-results.sarif | |
continue-on-error: true | |
- name: Upload analysis results to GitHub | |
uses: github/codeql-action/upload-sarif@v3.27.0 | |
with: | |
sarif_file: phpmd-results.sarif | |
wait-for-processing: true |