diff --git a/.github/workflows/integration-mariadb.yml b/.github/workflows/integration-mariadb.yml index f0fce527b50..d02d79d43b1 100644 --- a/.github/workflows/integration-mariadb.yml +++ b/.github/workflows/integration-mariadb.yml @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors # SPDX-License-Identifier: MIT -name: Integration MariaDB +name: Integration mariadb on: pull_request: @@ -61,7 +61,7 @@ jobs: notifications-versions: ['master'] services: - mysql: + mariadb: image: ghcr.io/nextcloud/continuous-integration-mariadb-10.6:latest ports: - 4444:3306/tcp @@ -126,6 +126,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Enable ONLY_FULL_GROUP_BY MariaDB option + run: | + echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword + echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword + - name: Set up production dependencies working-directory: apps/${{ env.APP_NAME }} run: composer i --no-dev diff --git a/.github/workflows/integration-mysql.yml b/.github/workflows/integration-mysql.yml index 7d7d4161213..35672a4cce6 100644 --- a/.github/workflows/integration-mysql.yml +++ b/.github/workflows/integration-mysql.yml @@ -126,6 +126,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Enable ONLY_FULL_GROUP_BY MySQL option + run: | + echo "SET GLOBAL sql_mode=(SELECT CONCAT(@@sql_mode,',ONLY_FULL_GROUP_BY'));" | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword + echo 'SELECT @@sql_mode;' | mysql -h 127.0.0.1 -P 4444 -u root -prootpassword + - name: Set up production dependencies working-directory: apps/${{ env.APP_NAME }} run: composer i --no-dev