mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
Remove mysql insecure warning in CI (#91739)
## About The Pull Request  This warning thing has been annoying me for a while when I scour CI logs looking for oranges/reds, let's remove this needless emission by confabulating a `.cfg` file and using that to run any necessary commands. This worked on my local repository and should pass CI without any issues on this repo as well. ## Why It's Good For The Game In case we really wanna start cracking down on failing due to warnings in CI it's helpful to ensure that the standard case is normal. Also just cleaner in general. ## Changelog Not needed.
This commit is contained in:
@@ -41,12 +41,15 @@ jobs:
|
||||
name: build-artifact-${{ inputs.major || env.BYOND_MAJOR }}-${{ inputs.minor || env.BYOND_MINOR}}
|
||||
path: ./
|
||||
- name: Setup database
|
||||
env:
|
||||
MYSQL_CONFIG_FILE: tools/ci/mysql_config.cnf
|
||||
run: |
|
||||
sudo systemctl start mysql
|
||||
mysql -u root -proot -e 'CREATE DATABASE tg_ci;'
|
||||
mysql -u root -proot tg_ci < SQL/tgstation_schema.sql
|
||||
mysql -u root -proot -e 'CREATE DATABASE tg_ci_prefixed;'
|
||||
mysql -u root -proot tg_ci_prefixed < SQL/tgstation_schema_prefixed.sql
|
||||
mysql --defaults-extra-file=${{ env.MYSQL_CONFIG_FILE }} -e 'CREATE DATABASE tg_ci;'
|
||||
mysql --defaults-extra-file=${{ env.MYSQL_CONFIG_FILE }} tg_ci < SQL/tgstation_schema.sql
|
||||
mysql --defaults-extra-file=${{ env.MYSQL_CONFIG_FILE }} -e 'CREATE DATABASE tg_ci_prefixed;'
|
||||
mysql --defaults-extra-file=${{ env.MYSQL_CONFIG_FILE }} tg_ci_prefixed < SQL/tgstation_schema_prefixed.sql
|
||||
echo "Sucessful MySQL Database Setup"
|
||||
- name: Install rust-g
|
||||
run: |
|
||||
bash tools/ci/install_rust_g.sh
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[client]
|
||||
user = "root"
|
||||
password = "root"
|
||||
Reference in New Issue
Block a user