feat: php sdk #2
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: CI | |
| on: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: [8.0, 8.1, 8.2, 8.3] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite | |
| coverage: xdebug | |
| - name: Install dependencies | |
| run: composer install | |
| - name: Run PHPStan | |
| run: composer phpstan | |
| - name: Run CodeSniffer | |
| run: composer cs | |
| - name: Validate composer.json | |
| run: composer validate | |
| - name: Check for security vulnerabilities | |
| run: composer audit --format=json --no-interaction || true |