From 1f0fccbff3b8e1f96e172b3427d58d0e36406e10 Mon Sep 17 00:00:00 2001 From: hongzhan Chen Date: Wed, 25 Dec 2019 22:21:03 -0500 Subject: [PATCH] 1.set para to fix that nc can not quit even after waiting for 6 hours and cause CI failure for memcached. 2. Add memcached into Actions. 3. add pull_request trigger --- .github/workflows/test.yml | 4 ++-- tests/memcached/memcached.bats | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6035274..c0febd9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,6 @@ name: CI -on: [push] +on: [push, pull_request] jobs: build1: @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ["cgit", "clr-installer-ci", "golang", "haproxy", "httpd", "iperf", "machine-learning-ui", "mariadb", "mixer-ci", "nginx", "node", "openjdk/8", "openjdk/13", "openvino", "os-core", "perl", "php", "php-fpm", "postgres", "python", "rabbitmq", "redis", "ruby", "tensorflow", "tensorflow-serving", "wordpress"] + node: ["cgit", "clr-installer-ci", "golang", "haproxy", "httpd", "iperf", "machine-learning-ui", "mariadb", "memcached", "mixer-ci", "nginx", "node", "openjdk/8", "openjdk/13", "openvino", "os-core", "perl", "php", "php-fpm", "postgres", "python", "rabbitmq", "redis", "ruby", "tensorflow", "tensorflow-serving", "wordpress"] steps: - uses: actions/checkout@v1 - name: install diff --git a/tests/memcached/memcached.bats b/tests/memcached/memcached.bats index cef17be..964cfc9 100755 --- a/tests/memcached/memcached.bats +++ b/tests/memcached/memcached.bats @@ -16,7 +16,7 @@ load ../utils [ "$status" -eq 0 ] ipaddr="$output" - echo stats | nc $ipaddr 11211 + echo stats | nc -q 5 $ipaddr 11211 # stop the container docker stop memcached-server