|
|
@@ -250,13 +250,16 @@ jobs:
|
|
|
node_type:
|
|
|
- single
|
|
|
- cluster
|
|
|
+ exclude:
|
|
|
+ - redis_tag: 5
|
|
|
+ connect_type: tls
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v1
|
|
|
- name: setup
|
|
|
env:
|
|
|
REDIS_TAG: ${{ matrix.redis_tag }}
|
|
|
- if: matrix.connect_type == 'tls' && matrix.redis_tag != '5'
|
|
|
+ if: matrix.connect_type == 'tls'
|
|
|
run: |
|
|
|
set -exu
|
|
|
docker-compose -f .ci/compatibility_tests/docker-compose-redis-${{ matrix.node_type }}-tls.yaml up -d
|
|
|
@@ -274,7 +277,6 @@ jobs:
|
|
|
docker-compose -f .ci/compatibility_tests/docker-compose-redis-${{ matrix.node_type }}.yaml up -d
|
|
|
echo EMQX_AUTH__REDIS__SSL=off >> "$GITHUB_ENV"
|
|
|
- name: get server address
|
|
|
- if: matrix.connect_type == 'tcp' || (matrix.connect_type == 'tls' && matrix.redis_tag != '5')
|
|
|
run: |
|
|
|
set -exu
|
|
|
ipv4_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' redis)
|
|
|
@@ -292,7 +294,7 @@ jobs:
|
|
|
EMQX_AUTH__REDIS__SERVER=${redis_${{ matrix.network_type }}_address}:6379
|
|
|
EOF
|
|
|
- name: setup
|
|
|
- if: matrix.node_type == 'single' && matrix.connect_type == 'tls' && matrix.redis_tag != '5'
|
|
|
+ if: matrix.node_type == 'single' && matrix.connect_type == 'tls'
|
|
|
run: |
|
|
|
set -exu
|
|
|
cat <<-EOF >> "$GITHUB_ENV"
|
|
|
@@ -308,7 +310,7 @@ jobs:
|
|
|
EMQX_AUTH__REDIS__SERVER=${redis_${{ matrix.network_type }}_address}:7000
|
|
|
EOF
|
|
|
- name: setup
|
|
|
- if: matrix.node_type == 'cluster' && matrix.connect_type == 'tls' && matrix.redis_tag != '5'
|
|
|
+ if: matrix.node_type == 'cluster' && matrix.connect_type == 'tls'
|
|
|
run: |
|
|
|
set -exu
|
|
|
cat <<-EOF >> "$GITHUB_ENV"
|
|
|
@@ -316,7 +318,6 @@ jobs:
|
|
|
EMQX_AUTH__REDIS__SERVER=${redis_${{ matrix.network_type }}_address}:8000
|
|
|
EOF
|
|
|
- name: run test cases
|
|
|
- if: matrix.connect_type == 'tcp' || (matrix.connect_type == 'tls' && matrix.redis_tag != '5')
|
|
|
run: |
|
|
|
export CUTTLEFISH_ENV_OVERRIDE_PREFIX=EMQX_
|
|
|
printenv > .env
|