File tree Expand file tree Collapse file tree 5 files changed +55
-38
lines changed
Expand file tree Collapse file tree 5 files changed +55
-38
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ PHPUnit :
9+ name : PHPUnit (PHP ${{ matrix.php }})
10+ runs-on : ubuntu-20.04
11+ strategy :
12+ matrix :
13+ php :
14+ - 7.3
15+ - 7.2
16+ - 7.1
17+ - 7.0
18+ - 5.6
19+ - 5.5
20+ - 5.4
21+ steps :
22+ - uses : actions/checkout@v2
23+ - uses : shivammathur/setup-php@v2
24+ with :
25+ php-version : ${{ matrix.php }}
26+ coverage : xdebug
27+ - run : composer install
28+ - run : docker run -d --name mysql --net=host -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test mysql:5
29+ - run : bash tests/wait-for-mysql.sh
30+ - run : MYSQL_USER=test MYSQL_PASSWORD=test vendor/bin/phpunit
31+
32+ PHPUnit-hhvm :
33+ name : PHPUnit (HHVM)
34+ runs-on : ubuntu-18.04
35+ continue-on-error : true
36+ steps :
37+ - uses : actions/checkout@v2
38+ - uses : azjezz/setup-hhvm@v1
39+ with :
40+ version : lts-3.30
41+ - run : hhvm $(which composer) require phpunit/phpunit:^5 --dev --no-interaction
42+ - run : docker run -d --name mysql --net=host -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test mysql:5
43+ - run : bash tests/wait-for-mysql.sh
44+ - run : MYSQL_USER=test MYSQL_PASSWORD=test hhvm vendor/bin/phpunit
Original file line number Diff line number Diff line change 1- vendor /
2- composer.lock
1+ / composer.lock
2+ / vendor /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
22# MySQL
33
4- [ ![ Build Status ] ( https://travis-ci.org /friends-of-reactphp/mysql.svg?branch=master )] ( https://travis-ci.org /friends-of-reactphp/mysql )
4+ [ ![ CI status ] ( https://github.com /friends-of-reactphp/mysql/workflows/CI/badge .svg )] ( https://github.com /friends-of-reactphp/mysql/actions )
55
66Async MySQL database client for [ ReactPHP] ( https://reactphp.org/ ) .
77
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ CONTAINER=" mysql"
4+ USERNAME=" test"
5+ PASSWORD=" test"
6+ while ! docker exec $CONTAINER mysql --user=$USERNAME --password=$PASSWORD -e " SELECT 1" > /dev/null 2>&1 ; do
7+ sleep 1
8+ done
You can’t perform that action at this time.
0 commit comments