Skip to content

Commit

Permalink
test swoole alone in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shellphy committed Jun 25, 2024
1 parent c17fc7a commit 47786b7
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: <https://github.com/codecov/codecov-action>
with:
Expand Down

0 comments on commit 47786b7

Please sign in to comment.