Skip to content

Commit

Permalink
ci: simplify the if condition (#3206)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Jan 11, 2021
1 parent 1727429 commit d030d3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: sudo ./.travis/${{ matrix.os_name }}_runner.sh before_install

- name: Install Redis Cluster
if: matrix.os_name == 'linux_openresty' || matrix.os_name == 'linux_openresty_1_17'
if: startsWith(matrix.os_name, 'linux_openresty')
run: |
docker run -d -p ${MASTER1_PORT}:6379 -p ${MASTER2_PORT}:6380 -p ${MASTER3_PORT}:6381 -p ${SLAVE1_PORT}:6382 -p ${SLAVE2_PORT}:6383 -p ${SLAVE3_PORT}:6384 --name redis-cluster vishnunair/docker-redis-cluster:latest
env:
Expand All @@ -71,15 +71,15 @@ jobs:
SLAVE3_PORT: 5005

- name: Running Redis Cluster Test
if: matrix.os_name == 'linux_openresty' || matrix.os_name == 'linux_openresty_1_17'
if: startsWith(matrix.os_name, 'linux_openresty')
run: |
sudo apt-get install -y redis-tools
docker ps -a
redis-cli -h 127.0.0.1 -p 5000 ping
redis-cli -h 127.0.0.1 -p 5000 cluster nodes
- name: Running etcd server with TLS
if: matrix.os_name == 'linux_openresty' || matrix.os_name == 'linux_openresty_1_17'
if: startsWith(matrix.os_name, 'linux_openresty')
run: |
sudo docker run -d -p 12379:12379 -p 12380:12380 \
-e ALLOW_NONE_AUTHENTICATION=yes \
Expand Down

0 comments on commit d030d3c

Please sign in to comment.