Skip to content

Commit b3cb5de

Browse files
committed
Make GitHub actions sed back the config to MySQL mode if needed
1 parent 87e2c6a commit b3cb5de

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
database-image: ["mariadb:10.6", "mariadb:10.11", "mysql:5.7", "mariadb:latest", "mysql:latest"]
17+
database-image: ["mariadb:10.6", "mariadb:10.11", "mariadb:latest", "mysql:5.7", "mysql:latest"]
1818
configuration: ["default", "one-host", "config-mount-dir", "fs-import-export", "different-apache-port"]
1919

2020
steps:
2121
- uses: actions/checkout@v3
22+
- name: Switch to MySQL compatible ENVs
23+
if: ${{ contains(matrix.database-image, 'mysql') }}
24+
working-directory: ./testing/docker-compose/
25+
run: sed -i 's/MARIADB_ROOT_PASSWORD/MYSQL_ROOT_PASSWORD/' ./docker-compose.testing-${{ matrix.configuration }}.yml
26+
- name: Switch to MySQL compatible healthcheck
27+
if: ${{ contains(matrix.database-image, 'mysql') }}
28+
working-directory: ./testing/docker-compose/
29+
run: sed -i 's/mariadb-admin/mysqladmin/' ./docker-compose.testing-${{ matrix.configuration }}.yml
2230
- name: Build images
2331
working-directory: ./testing/
2432
run: docker-compose -f ./docker-compose/docker-compose.testing-${{ matrix.configuration }}.yml build

0 commit comments

Comments
 (0)