More tests with new workflow.
This commit is contained in:
parent
f2c61401f6
commit
8f908ed2ac
2 changed files with 11 additions and 4 deletions
11
.github/actions/setup-database/action.yml
vendored
11
.github/actions/setup-database/action.yml
vendored
|
|
@ -43,9 +43,14 @@ runs:
|
||||||
echo "MySQL is ready"
|
echo "MySQL is ready"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Set up MySQL Privileges
|
- name: Set up MySQL Privileges and Character Set
|
||||||
if: ${{ inputs.database == 'mysql' }}
|
if: ${{ inputs.database == 'mysql' }}
|
||||||
run: |
|
run: |
|
||||||
|
# Set global character set and collation
|
||||||
|
mysql -u root -proot_password -h 127.0.0.1 mysql <<EOF
|
||||||
|
SET GLOBAL character_set_server = 'utf8mb4';
|
||||||
|
SET GLOBAL collation_server = 'utf8mb4_unicode_ci';
|
||||||
|
EOF
|
||||||
# Ensure user exists and has proper privileges
|
# Ensure user exists and has proper privileges
|
||||||
mysql -u root -proot_password -h 127.0.0.1 mysql <<EOF
|
mysql -u root -proot_password -h 127.0.0.1 mysql <<EOF
|
||||||
CREATE USER IF NOT EXISTS 'evennia'@'%' IDENTIFIED BY 'password';
|
CREATE USER IF NOT EXISTS 'evennia'@'%' IDENTIFIED BY 'password';
|
||||||
|
|
@ -53,6 +58,10 @@ runs:
|
||||||
GRANT PROCESS ON *.* TO 'evennia'@'%';
|
GRANT PROCESS ON *.* TO 'evennia'@'%';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
EOF
|
EOF
|
||||||
|
# Set database character set
|
||||||
|
mysql -u root -proot_password -h 127.0.0.1 evennia <<EOF
|
||||||
|
ALTER DATABASE evennia CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
EOF
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# get logs from db start
|
# get logs from db start
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- python-version: "3.11"
|
- python-version: "3.11"
|
||||||
coverage-test: true
|
coverage-test: true
|
||||||
|
|
||||||
timeout-minutes: 35
|
timeout-minutes: 10
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -71,8 +71,6 @@ jobs:
|
||||||
--health-interval=10s
|
--health-interval=10s
|
||||||
--health-timeout=5s
|
--health-timeout=5s
|
||||||
--health-retries=3
|
--health-retries=3
|
||||||
--character-set-server=utf8mb4
|
|
||||||
--collation-server=utf8mb4_unicode_ci
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue