Fix the offset error caused by CURLOPT_PORT and CURLOPT_URL order (#96) #395
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-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: ["7.1", "7.2", "7.3", "7.4", "8.0"] | |
name: Under PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Services | |
run: | | |
sed -i.bak -e "s/^FROM phpswoole\/swoole.*$/FROM phpswoole\/swoole:4.5-php${{ matrix.php }}/g" ./Dockerfile | |
docker-compose up -d | |
docker ps -a | |
docker exec -t $(docker ps -qf "name=app") bash -c "php -v" | |
docker exec -t $(docker ps -qf "name=app") bash -c "php --ri swoole" | |
docker run --rm -v "$(pwd)":/var/www -t phpswoole/swoole:4.5-php${{ matrix.php }}-dev composer install -n | |
- name: Run Unit Tests | |
run: docker exec -t $(docker ps -qf "name=app") bash -c "./vendor/bin/phpunit" | |
- name: Stop and Remove Docker Containers | |
run: docker-compose down |