Ext-encoding support #396
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: PHPStan CI | |
| on: push | |
| jobs: | |
| phpstan: | |
| name: PHPStan Analysis | |
| runs-on: ubuntu-22.04 | |
| if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
| steps: | |
| - name: Startup | |
| uses: actions/checkout@v6 | |
| - name: Download PHP Release | |
| uses: dsaltares/[email protected] | |
| with: | |
| file: PHP-8.4-Linux-x86_64-PM5.tar.gz | |
| repo: NetherGamesMC/php-build-scripts | |
| version: "tags/pm5-php-8.4-latest" | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Unpack PHP Release | |
| run: tar -xzvf PHP-8.4-Linux-x86_64-PM5.tar.gz | |
| - name: Install libffi7 | |
| run: sudo apt update && sudo apt install -y --no-install-recommends libffi7 | |
| - name: Download Composer | |
| run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar" | |
| - name: Add Composer GitHub access token | |
| run: ./bin/php7/bin/php composer.phar config --global github-oauth.github.com ${{ secrets.ng_token }} | |
| - name: Install Composer dependencies | |
| run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction | |
| - name: Run PHPStan | |
| run: ./bin/php7/bin/php vendor/bin/phpstan.phar analyze --no-progress |