mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
ACS-4653 GHA - Fix mySQL tests (#1765)
* Added missing mysql params for older version. Test [db]
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -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"
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user