From 11a80959593e6a847599e449f2ac1aa8bf167ca7 Mon Sep 17 00:00:00 2001 From: Evan Adam Date: Wed, 14 Aug 2024 09:22:21 +0200 Subject: [PATCH] ci(Gorgone): remove os specific db name as database are not shared across jobs Refs:MON-139728 --- .github/workflows/gorgone.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gorgone.yml b/.github/workflows/gorgone.yml index a60905c0ee8..6c090e1fd5f 100644 --- a/.github/workflows/gorgone.yml +++ b/.github/workflows/gorgone.yml @@ -222,15 +222,15 @@ jobs: - name: Create databases run: | - mysql -h mariadb -u root -ppassword -e "CREATE DATABASE \`centreon${{ matrix.distrib }}\`" - mysql -h mariadb -u root -ppassword -e "CREATE DATABASE \`centreon-storage${{ matrix.distrib }}\`" - mysql -h mariadb -u root -ppassword -e "GRANT ALL PRIVILEGES ON centreon${{ matrix.distrib }}.* TO 'centreon'@'%'" - mysql -h mariadb -u root -ppassword -e "GRANT ALL PRIVILEGES ON \`centreon-storage${{ matrix.distrib }}\`.* TO 'centreon'@'%'" - mysql -h mariadb -u root -ppassword 'centreon${{ matrix.distrib }}' < centreon/centreon/www/install/createTables.sql - mysql -h mariadb -u root -ppassword 'centreon-storage${{ matrix.distrib }}' < centreon/centreon/www/install/createTablesCentstorage.sql + mysql -h mariadb -u root -ppassword -e "CREATE DATABASE \`centreon\`" + mysql -h mariadb -u root -ppassword -e "CREATE DATABASE \`centreon-storage\`" + mysql -h mariadb -u root -ppassword -e "GRANT ALL PRIVILEGES ON centreon.* TO 'centreon'@'%'" + mysql -h mariadb -u root -ppassword -e "GRANT ALL PRIVILEGES ON \`centreon-storage\`.* TO 'centreon'@'%'" + mysql -h mariadb -u root -ppassword 'centreon' < centreon/centreon/www/install/createTables.sql + mysql -h mariadb -u root -ppassword 'centreon-storage' < centreon/centreon/www/install/createTablesCentstorage.sql - name: Run tests - run: robot -v 'DBHOST:mariadb' -v 'DBNAME:centreon${{ matrix.distrib }}' -v 'DBNAME_STORAGE:centreon-storage${{ matrix.distrib }}' -v 'DBUSER:centreon' gorgone/tests + run: robot -v 'DBHOST:mariadb' -v 'DBNAME:centreon' -v 'DBNAME_STORAGE:centreon-storage' -v 'DBUSER:centreon' gorgone/tests - name: Upload gorgone and robot debug artifacts if: failure()