ACS-4653 GHA - Fix mySQL tests (#1765)

* Added missing mysql params for older version. Test [db]
This commit is contained in:
evasques
2023-02-23 10:37:43 +00:00
committed by GitHub
parent 309f6baae3
commit 7a504a0292
2 changed files with 3 additions and 1 deletions

View File

@@ -219,6 +219,7 @@ jobs:
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d
env: env:
MYSQL_VERSION: 5.7.28 MYSQL_VERSION: 5.7.28
MYSQL_PARAMS: --transaction-isolation='READ-COMMITTED' --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
- name: "Run tests" - name: "Run tests"
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
- name: "Clean Maven cache" - name: "Clean Maven cache"
@@ -247,6 +248,7 @@ jobs:
run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d run: docker-compose -f ./scripts/ci/docker-compose/docker-compose-db.yaml --profile mysql up -d
env: env:
MYSQL_VERSION: 8 MYSQL_VERSION: 8
MYSQL_PARAMS: --transaction-isolation='READ-COMMITTED'
- name: "Run tests" - name: "Run tests"
run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco run: mvn -B test -pl repository -am -Dtest=AllDBTestsTestSuite -DfailIfNoTests=false -Ddb.driver=com.mysql.jdbc.Driver -Ddb.name=alfresco -Ddb.url=jdbc:mysql://localhost:3307/alfresco -Ddb.username=alfresco -Ddb.password=alfresco
- name: "Clean Maven cache" - name: "Clean Maven cache"

View File

@@ -25,7 +25,7 @@ services:
mysql: mysql:
profiles: ["mysql"] profiles: ["mysql"]
image: mysql:${MYSQL_VERSION} image: mysql:${MYSQL_VERSION}
command: --transaction-isolation='READ-COMMITTED' command: ${MYSQL_PARAMS}
environment: environment:
- MYSQL_ROOT_PASSWORD=alfresco - MYSQL_ROOT_PASSWORD=alfresco
- MYSQL_USER=alfresco - MYSQL_USER=alfresco