code quality improvements on connection pool #402
This file contains 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: Unit Tests | |
on: [ push, pull_request, workflow_dispatch ] | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: true | |
matrix: | |
php: ["8.0", "8.1", "8.2"] | |
name: Under PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Services | |
run: | | |
sed -i.bak -e "s/^FROM phpswoole\/swoole.*$/FROM phpswoole\/swoole:php${{ matrix.php }}/g" ./Dockerfile | |
docker-compose up -d | |
docker ps -a | |
docker-compose exec -T app php -v | |
docker-compose exec -T app php --ri swoole | |
docker-compose exec -T app composer install -n --no-progress | |
- name: Run Unit Tests | |
run: docker-compose exec -T app composer test | |
- name: Stop and Remove Docker Containers | |
run: docker-compose down |