Add UTF-8 body content validation #640
Workflow file for this run
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: PHP Tests | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| info: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: | |
| - "8.5" | |
| steps: | |
| - name: OS info | |
| run: cat /etc/os-release | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| php-version: ${{ matrix.php-version }} | |
| extensions: gnupg | |
| - name: PHP info | |
| run: | | |
| php -v | |
| php -m | |
| php --ri gnupg | |
| lint-phpcs-phpstan-tester: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: | |
| - "8.5" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| php-version: ${{ matrix.php-version }} | |
| extensions: gnupg | |
| - name: Validate composer.json | |
| run: composer validate --strict --no-interaction | |
| - name: Install dependencies | |
| run: composer update --no-progress --no-interaction | |
| - name: Run linter | |
| run: composer lint | |
| - name: Run PHPCS | |
| run: composer phpcs | |
| - name: Run PHPStan | |
| run: composer phpstan | |
| - name: Run Tester | |
| run: composer tester | |
| - name: Run Tester without extensions | |
| run: composer tester-no-extensions | |
| psalm: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: | |
| - "8.5" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| coverage: none | |
| php-version: ${{ matrix.php-version }} | |
| extensions: gnupg | |
| - name: Validate composer.json | |
| run: composer validate --strict --no-interaction | |
| - name: Install dependencies | |
| run: composer update --no-progress --no-interaction | |
| - name: Run Psalm | |
| run: composer psalm |