Skip to content

Commit

Permalink
Assert Swoole version in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sshymko committed Nov 28, 2023
1 parent eed37d8 commit ee12b86
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ jobs:
env:
fail-fast: true
- name: Verify PHP environment
run: php --ri swoole || php --ri openswoole
run: |
php --ri swoole || php --ri openswoole
swoole_version="$(php -r "echo defined('SWOOLE_VERSION') ? SWOOLE_VERSION : OPENSWOOLE_VERSION;")"
[[ "openswoole-$swoole_version" == *"${{ matrix.swoole-version }}"* ]] || exit 1
- name: Install dependencies
run: composer install -n
- name: Update permissions
Expand Down Expand Up @@ -108,7 +111,10 @@ jobs:
env:
fail-fast: true
- name: Verify PHP environment
run: php --ri swoole || php --ri openswoole
run: |
php --ri swoole || php --ri openswoole
swoole_version="$(php -r "echo defined('SWOOLE_VERSION') ? SWOOLE_VERSION : OPENSWOOLE_VERSION;")"
[[ "openswoole-$swoole_version" == *"${{ matrix.swoole-version }}"* ]] || exit 1
- name: Install dependencies
run: composer install -n
- name: Run test suite
Expand Down

0 comments on commit ee12b86

Please sign in to comment.