提交 d3776a51 编写于 作者: H heyanlong

Add test

上级 ae589a31
......@@ -17,7 +17,8 @@ jobs:
matrix:
operating-system: [ubuntu-latest]
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
skywalking-version: ['8.1.0-es6', '8.0.1-es6', '8.0.0-es6']
name: PHP ${{ matrix.php-version }} SkyWalking ${{ matrix.skywalking-version }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
......@@ -47,6 +48,7 @@ jobs:
- name: Start docker-compose
run: |
sudo sed -i "s/VERSION/${{ matrix.skywalking-version }}/g" e2e/docker-compose.yml
docker-compose -f e2e/docker-compose.yml up -d
docker ps
......@@ -89,7 +91,6 @@ jobs:
composer install
php e2e.php
sudo cat /tmp/skywalking-php.log
docker logs e2e_skywalking_1
publish:
needs: [build]
......
version: '3'
services:
skywalking:
image: apache/skywalking-oap-server
image: apache/skywalking-oap-server:VERSION
ports:
- "11800:11800"
- "12800:12800"
......
......@@ -64,8 +64,11 @@ GRAPHQL;
}
public function call() {
$ch = curl_init('http://127.0.0.1:8080/call');
$ch = curl_init('http://127.0.0.1:8083/call');
curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) != 200) {
exit(2);
}
}
public function verifyServices() {
......@@ -161,7 +164,7 @@ foreach($check as $func) {
if (!$status) {
$e2e->info("test $func fail...");
exit(0);
exit(2);
}
$e2e->info("test $func success...");
......
......@@ -14,7 +14,7 @@
# limitations under the License.
server {
listen 8080;
listen 8083;
root /var/www/html;
index index.php;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册