Skip to content

Commit

Permalink
Switch over to mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 31, 2024
1 parent 67ccf05 commit 471181f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:

services:
mysql:
image: mysql:latest
image: mariadb:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: gang
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
MARIADB_DATABASE: gangs
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v4
Expand All @@ -39,13 +38,6 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget-
- name: Wait for MySQL
run: |
until mysqladmin ping -h "localhost" --silent; do
echo "Waiting for database connection..."
sleep 2
done
- name: Restore dependencies
run: dotnet restore

Expand Down
2 changes: 1 addition & 1 deletion GangsTest/StatTests/StatManagerData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace GangsTest.StatTests;
public class StatManagerData : IEnumerable<object[]> {
private readonly IBehavior[] behaviors = [
new MockStatManager(),
new SQLStatManager("Server=localhost;User=root;Database=gang",
new SQLStatManager("Server=localhost;User=root;Database=gangs",
"gang_unit_test"),
new SQLiteStatManager("Data Source=:memory:", "gang_unit_test")
];
Expand Down

0 comments on commit 471181f

Please sign in to comment.