Merge pull request #31 from k-kinzal/codex/split-interceptor-pipeline #71
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0 | |
| with: | |
| php-version: '8.4' | |
| extensions: mbstring, curl | |
| coverage: none | |
| - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0 | |
| - run: composer lint | |
| test: | |
| name: Test (PHP ${{ matrix.php }}, ${{ matrix.deps }} deps) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: [lint] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| deps: ['latest'] | |
| include: | |
| - php: '8.0' | |
| deps: 'lowest' | |
| - php: '8.5' | |
| deps: 'lowest' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, curl | |
| coverage: none | |
| - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0 | |
| with: | |
| dependency-versions: ${{ matrix.deps }} | |
| - run: composer test | |
| examples: | |
| name: Example (${{ matrix.example }}, PHP ${{ matrix.php }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: [lint] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| example: | |
| - basic | |
| - configuration | |
| - custom-responses | |
| - declarative-server | |
| - faker-customization | |
| - middleware | |
| - request-validation | |
| - vcr-recording | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring, curl | |
| coverage: none | |
| - uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # v4.0.0 | |
| with: | |
| working-directory: examples/${{ matrix.example }} | |
| - run: vendor/bin/phpunit | |
| working-directory: examples/${{ matrix.example }} |