docs: update security policy to support v2 and v3 #46
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: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - 1.x | |
| - 2.x | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test on PHP ${{ matrix.php-versions }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php-versions: ['8.2', '8.3', '8.4'] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| coverage: none | |
| - name: Install composer and dependencies | |
| uses: php-actions/composer@v6 | |
| - name: Run Code Sniffer | |
| run: vendor/bin/phpcs | |
| - name: Run phpstan | |
| run: vendor/bin/phpstan analyse -c phpstan.neon --no-progress | |
| - name: Run Pest | |
| run: vendor/bin/pest |