From 47786b74012bee72d4eeccab23d540032206a9cc Mon Sep 17 00:00:00 2001 From: shellphy Date: Wed, 26 Jun 2024 00:00:38 +0800 Subject: [PATCH] test swoole alone in ci --- .github/workflows/ci-build.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 54d66d7..d0b7db2 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -12,12 +12,32 @@ jobs: matrix: php: ['7.4', '8.0', '8.1'] flag: ['--prefer-lowest', '--prefer-stable'] + include: + - php: '7.4' + extensions: 'dom, xdebug' + test-script: 'composer test-cover -- --exclude-group RPCTest' + - php: '7.4' + extensions: 'dom, swoole' + test-script: 'vendor/bin/phpunit --filter RPCTest' + - php: '8.0' + extensions: 'dom, xdebug' + test-script: 'composer test-cover -- --exclude-group RPCTest' + - php: '8.0' + extensions: 'dom, swoole' + test-script: 'vendor/bin/phpunit --filter RPCTest' + - php: '8.1' + extensions: 'dom, xdebug' + test-script: 'composer test-cover -- --exclude-group RPCTest' + - php: '8.1' + extensions: 'dom, swoole' + test-script: 'vendor/bin/phpunit --filter RPCTest' + steps: - name: Set up PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, xdebug, swoole + extensions: ${{ matrix.extensions }} - name: Check out code uses: actions/checkout@v2 @@ -46,7 +66,7 @@ jobs: run: docker run --name test-server --rm -d -p "7079:7079/tcp" test-server:local - name: Run tests - run: composer test-cover + run: ${{ matrix.test-script }} - uses: codecov/codecov-action@v1 # Docs: with: