|
|
@@ -14,25 +14,17 @@ on:
|
|
|
|
|
|
jobs:
|
|
|
run_test_case:
|
|
|
- runs-on: ubuntu-latest
|
|
|
-
|
|
|
- strategy:
|
|
|
- matrix:
|
|
|
- mysql_tag: [5.7]
|
|
|
- redis_tag: [6]
|
|
|
- mongo_tag: [4]
|
|
|
- pgsql_tag: [13]
|
|
|
- ldap_tag: [2.4.50]
|
|
|
+ runs-on: ubuntu-20.04
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- name: set up
|
|
|
env:
|
|
|
- MYSQL_TAG: ${{ matrix.mysql_tag }}
|
|
|
- REDIS_TAG: ${{ matrix.redis_tag }}
|
|
|
- MONGO_TAG: ${{ matrix.mongo_tag }}
|
|
|
- PGSQL_TAG: ${{ matrix.pgsql_tag }}
|
|
|
- LDAP_TAG: ${{ matrix.ldap_tag }}
|
|
|
+ MYSQL_TAG: 8
|
|
|
+ REDIS_TAG: 6
|
|
|
+ MONGO_TAG: 4
|
|
|
+ PGSQL_TAG: 13
|
|
|
+ LDAP_TAG: 2.4.50
|
|
|
run: |
|
|
|
cp -f apps/emqx_auth_ldap/emqx.io.ldif .ci/apps_tests/emqx_ldap/schema
|
|
|
cp -f apps/emqx_auth_ldap/emqx.schema .ci/apps_tests/emqx_ldap/schema
|
|
|
@@ -42,23 +34,8 @@ jobs:
|
|
|
- name: set config files
|
|
|
run: |
|
|
|
sed -i "/auth.mysql.server/c auth.mysql.server = mysql_server:3306" apps/emqx_auth_mysql/etc/emqx_auth_mysql.conf
|
|
|
- echo 'auth.mysql.ssl = on' >> apps/emqx_auth_redis/etc/emqx_auth_mysql.conf
|
|
|
- echo "auth.mysql.ssl.cafile = /emqx/apps/emqx_auth_mysql/test/emqx_auth_mysql_SUITE_data/ca.pem" >> apps/emqx_auth_mysql/etc/emqx_auth_mysql.conf
|
|
|
- echo "auth.mysql.ssl.certfile = /emqx/apps/emqx_auth_mysql/test/emqx_auth_mysql_SUITE_data/client-cert.pem" >> apps/emqx_auth_mysql/etc/emqx_auth_mysql.conf
|
|
|
- echo "auth.mysql.ssl.keyfile = /emqx/apps/emqx_auth_mysql/test/emqx_auth_mysql_SUITE_data/client-key.pem" >> apps/emqx_auth_mysql/etc/emqx_auth_mysql.conf
|
|
|
-
|
|
|
sed -i "/auth.redis.server/c auth.redis.server = redis_server:6379" apps/emqx_auth_redis/etc/emqx_auth_redis.conf
|
|
|
- echo 'auth.redis.ssl = on' >> apps/emqx_auth_redis/etc/emqx_auth_redis.conf
|
|
|
- echo 'auth.redis.ssl.cafile = /emqx/apps/emqx_auth_redis/test/emqx_auth_redis_SUITE_data/certs/ca.crt' >> apps/emqx_auth_redis/etc/emqx_auth_redis.conf
|
|
|
- echo 'auth.redis.ssl.certfile = /emqx/apps/emqx_auth_redis/test/emqx_auth_redis_SUITE_data/certs/redis.crt' >> apps/emqx_auth_redis/etc/emqx_auth_redis.conf
|
|
|
- echo 'auth.redis.ssl.keyfile = /emqx/apps/emqx_auth_redis/test/emqx_auth_redis_SUITE_data/certs/redis.key' >> apps/emqx_auth_redis/etc/emqx_auth_redis.conf
|
|
|
-
|
|
|
sed -i "/auth.mongo.server/c auth.mongo.server = mongo_server:27017" apps/emqx_auth_mongo/etc/emqx_auth_mongo.conf
|
|
|
- echo 'auth.mongo.ssl = on' >> apps/emqx_auth_mongo/etc/emqx_auth_mongo.conf
|
|
|
- echo 'auth.mongo.ssl.cacertfile = /emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE_data/ca.pem' >> apps/emqx_auth_mongo/etc/emqx_auth_mongo.conf
|
|
|
- echo 'auth.mongo.ssl.certfile = /emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE_data/client-cert.pem' >> apps/emqx_auth_mongo/etc/emqx_auth_mongo.conf
|
|
|
- echo 'auth.mongo.ssl.keyfile = /emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE_data/client-key.pem' >> apps/emqx_auth_mongo/etc/emqx_auth_mongo.conf
|
|
|
-
|
|
|
sed -i "/auth.pgsql.server/c auth.pgsql.server = pgsql_server:5432" apps/emqx_auth_pgsql/etc/emqx_auth_pgsql.conf
|
|
|
sed -i "/auth.ldap.servers/c auth.ldap.servers = ldap_server" apps/emqx_auth_ldap/etc/emqx_auth_ldap.conf
|
|
|
- name: run tests
|
|
|
@@ -68,9 +45,9 @@ jobs:
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
if: failure()
|
|
|
with:
|
|
|
- name: logs_mysql${{ matrix.mysql_tag }}_reids${{ matrix.redis_tag }}_mongo${{ matrix.mongo_tag }}_pgsql${{ matrix.pgsql_tag }}_ldap${{ matrix.ldap_tag }}
|
|
|
+ name: logs
|
|
|
path: _build/test/logs
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
with:
|
|
|
- name: cover_mysql${{ matrix.mysql_tag }}_reids${{ matrix.redis_tag }}_mongo${{ matrix.mongo_tag }}_pgsql${{ matrix.pgsql_tag }}_ldap${{ matrix.ldap_tag }}
|
|
|
+ name: cover
|
|
|
path: _build/test/cover
|