added .github/workflows/ci.yml +45 -0
| new file mode 100644 |
| @@ -0,0 +1,45 @@ |
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +jobs: |
| 12 | + checks: |
| 13 | + name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }} |
| 14 | + runs-on: ubuntu-latest |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + php: ['8.4', '8.5'] |
| 19 | + symfony: ['7.4.*', '8.*'] |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v7 |
| 22 | + |
| 23 | + - uses: shivammathur/setup-php@v2 |
| 24 | + with: |
| 25 | + php-version: ${{ matrix.php }} |
| 26 | + coverage: none |
| 27 | + |
| 28 | + # No lock file for a library, so pinning the constraints is what selects the Symfony line under test. |
| 29 | + - name: Pin Symfony version |
| 30 | + run: >- |
| 31 | + composer require --no-update --no-interaction |
| 32 | + 'symfony/http-foundation:${{ matrix.symfony }}' |
| 33 | + 'symfony/http-kernel:${{ matrix.symfony }}' |
| 34 | + 'symfony/runtime:${{ matrix.symfony }}' |
| 35 | + |
| 36 | + - uses: ramsey/composer-install@v4 |
| 37 | + |
| 38 | + - name: PHP-CS-Fixer |
| 39 | + run: composer cs |
| 40 | + |
| 41 | + - name: PHPStan |
| 42 | + run: composer phpstan |
| 43 | + |
| 44 | + - name: PHPUnit |
| 45 | + run: composer test |
| new file mode 100644 |
| @@ -0,0 +1,45 @@ |
| | 1 | +name: CI |
| | 2 | + |
| | 3 | +on: |
| | 4 | + push: |
| | 5 | + branches: [main] |
| | 6 | + pull_request: |
| | 7 | + |
| | 8 | +permissions: |
| | 9 | + contents: read |
| | 10 | + |
| | 11 | +jobs: |
| | 12 | + checks: |
| | 13 | + name: PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }} |
| | 14 | + runs-on: ubuntu-latest |
| | 15 | + strategy: |
| | 16 | + fail-fast: false |
| | 17 | + matrix: |
| | 18 | + php: ['8.4', '8.5'] |
| | 19 | + symfony: ['7.4.*', '8.*'] |
| | 20 | + steps: |
| | 21 | + - uses: actions/checkout@v7 |
| | 22 | + |
| | 23 | + - uses: shivammathur/setup-php@v2 |
| | 24 | + with: |
| | 25 | + php-version: ${{ matrix.php }} |
| | 26 | + coverage: none |
| | 27 | + |
| | 28 | + # No lock file for a library, so pinning the constraints is what selects the Symfony line under test. |
| | 29 | + - name: Pin Symfony version |
| | 30 | + run: >- |
| | 31 | + composer require --no-update --no-interaction |
| | 32 | + 'symfony/http-foundation:${{ matrix.symfony }}' |
| | 33 | + 'symfony/http-kernel:${{ matrix.symfony }}' |
| | 34 | + 'symfony/runtime:${{ matrix.symfony }}' |
| | 35 | + |
| | 36 | + - uses: ramsey/composer-install@v4 |
| | 37 | + |
| | 38 | + - name: PHP-CS-Fixer |
| | 39 | + run: composer cs |
| | 40 | + |
| | 41 | + - name: PHPStan |
| | 42 | + run: composer phpstan |
| | 43 | + |
| | 44 | + - name: PHPUnit |
| | 45 | + run: composer test |