⚡️ perf(tests): optimize jest memory usage and fix test warnings #562
This file contains hidden or 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: PHPMD | |
| on: | |
| push: | |
| branches: [ "develop", "master" ] | |
| pull_request: | |
| branches: [ "develop", "master" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| PHPMD: | |
| name: Run PHPMD scanning | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| token: '${{ secrets.CI_USER_TOKEN_MATECATBOT || github.token }}' | |
| - name: Setup PHP project | |
| uses: ./.github/actions/setup-php-project | |
| - name: Run PHPMD | |
| run: ./vendor/bin/phpmd ./lib/ sarif codesize --reportfile phpmd-results.sarif | |
| continue-on-error: true | |
| - name: Upload analysis results to GitHub | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: phpmd-results.sarif | |
| wait-for-processing: true |