fix: 修复 SetupSentryListener 中请求生命周期选项的设置逻辑 #138
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: Test for Components | |
| on: | |
| push: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!.vscode/**" | |
| - "!**.md" | |
| pull_request: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!.vscode/**" | |
| - "!**.md" | |
| schedule: | |
| - cron: '0 2 * * *' | |
| env: | |
| SW_VERSION: 'v6.1.3' | |
| jobs: | |
| php-mysql-replication: | |
| name: Test for PHP MySQL Replication | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| PHP_VERSION: ${{ matrix.php-version }} | |
| strategy: | |
| matrix: | |
| php-version: [ '8.4', '8.3', '8.2' ] | |
| mysql-replication: [ '^9.0', '^8.0' ] | |
| max-parallel: 10 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| ini-values: opcache.enable_cli=1 | |
| coverage: none | |
| - name: Setup Packages | |
| run: | | |
| composer require krowinski/php-mysql-replication:${{ matrix.mysql-replication }} --no-update | |
| composer update -o | |
| - name: Run Test Cases | |
| run: | | |
| composer analyse src/trigger | |
| serializable-closure: | |
| name: Test for Laravel Serializable Closure | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| PHP_VERSION: ${{ matrix.php-version }} | |
| strategy: | |
| matrix: | |
| php-version: [ '8.4', '8.3', '8.2' ] | |
| serializable-closure: [ '^2.0', '^1.0' ] | |
| max-parallel: 10 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| ini-values: opcache.enable_cli=1 | |
| coverage: none | |
| - name: Setup Packages | |
| run: | | |
| composer require laravel/serializable-closure:${{ matrix.serializable-closure }} --no-update | |
| composer update -o | |
| - name: Run Test Cases | |
| run: | | |
| composer analyse src/support | |
| composer analyse:types types/Support | |
| composer test:unit -- tests/Support/DispatchTest.php | |
| carbon: | |
| name: Test for Nesbot Carbon | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| PHP_VERSION: ${{ matrix.php-version }} | |
| strategy: | |
| matrix: | |
| php-version: [ '8.4', '8.3', '8.2' ] | |
| carbon-version: [ '^3.0', '^2.0' ] | |
| max-parallel: 10 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| ini-values: opcache.enable_cli=1 | |
| coverage: none | |
| - name: Setup Packages | |
| run: | | |
| composer require nesbot/carbon:${{ matrix.carbon-version }} --no-update | |
| composer update -o | |
| - name: Run Test Cases | |
| run: | | |
| composer analyse src | |
| composer analyse:types | |
| symfony: | |
| name: Test for Symfony Components | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| PHP_VERSION: ${{ matrix.php-version }} | |
| strategy: | |
| matrix: | |
| php-version: [ '8.4', '8.3', '8.2' ] | |
| symfony-version: [ '^7.0', '^6.0' ] | |
| max-parallel: 10 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| ini-values: opcache.enable_cli=1 | |
| coverage: none | |
| - name: Setup Packages | |
| run: | | |
| for package in `cat composer.json|grep "symfony/" | grep -v "polyfill" | awk -F '"' '{print $2}'`; do | |
| composer require "${package}:${{ matrix.symfony-version }}" --dev --no-update; | |
| done | |
| composer update -o | |
| - name: Run Test Cases | |
| run: | | |
| composer analyse src | |
| composer analyse:types | |
| elasticsearch: | |
| name: Test for Elasticsearch | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| PHP_VERSION: ${{ matrix.php-version }} | |
| strategy: | |
| matrix: | |
| php-version: [ '8.4', '8.3', '8.2' ] | |
| elasticsearch-version: [ '^9.0', '^8.0' ] | |
| max-parallel: 10 | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| tools: phpize | |
| extensions: redis, pdo, pdo_mysql, bcmath, swoole | |
| ini-values: opcache.enable_cli=1 | |
| coverage: none | |
| - name: Setup Packages | |
| run: | | |
| composer require elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }} --no-update | |
| composer update -o | |
| - name: Run Test Cases | |
| run: | | |
| composer analyse src/elasticsearch | |
| composer analyse src/sentry | |
| composer analyse src/telescope-elasticsearch | |
| composer analyse:types types/Sentry | |
| composer test:unit -- --group=elasticsearch | |
| composer test:unit -- --group=sentry |