static analysis on PSL #1098
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: "static analysis on PSL" | |
| on: | |
| pull_request: ~ | |
| push: ~ | |
| schedule: | |
| - cron: '0 */3 * * *' | |
| jobs: | |
| static-analysis-on-psl: | |
| name: "static analysis on PSL" | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: "checkout" | |
| uses: "actions/checkout@v2" | |
| - name: "installing PHP" | |
| uses: "shivammathur/setup-php@v2" | |
| with: | |
| php-version: "8.1" | |
| ini-values: memory_limit=-1 | |
| tools: composer:v2, cs2pr | |
| extensions: bcmath, mbstring, intl, sodium, json | |
| - name: "Clone php-standard-library/php-standard-library" | |
| uses: "GuillaumeFalourd/clone-github-repo-action@v2.2" | |
| with: | |
| branch: 'next' | |
| owner: 'php-standard-library' | |
| repository: 'php-standard-library' | |
| - name: "Link current psalm-plugin" | |
| working-directory: php-standard-library | |
| run: | | |
| composer config repositories.psalm-plugin path ../ | |
| composer require --dev 'php-standard-library/psalm-plugin:*@dev' 'vimeo/psalm:>=5.16' | |
| - name: "installing dependencies" | |
| working-directory: php-standard-library | |
| run: make install -j10 -O | |
| - name: "running static analysis" | |
| working-directory: php-standard-library | |
| run: make static-analysis | |
| - name: "calculating type coverage" | |
| working-directory: php-standard-library | |
| run: make type-coverage |