Browse Source

Merge pull request #12730 from nextcloud/bugfix/noid/more-oracle

fix(CI): Fix mariadb and mysql options in integration test
pull/12735/head
Joas Schilling 1 year ago
committed by GitHub
parent
commit
2344275ac7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      .github/workflows/integration-mariadb.yml
  2. 5
      .github/workflows/integration-mysql.yml

9
.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

5
.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

Loading…
Cancel
Save