Skip to content

Commit

Permalink
Try separating
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 31, 2024
1 parent 471181f commit 8121461
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,32 @@ on:
pull_request:

jobs:
build:

db:
runs-on: ubuntu-latest

strategy:
matrix:
dotnet-version: [ 6.0.x, 7.0.x, 8.0.x, 9.0.x ] # Test on multiple .NET versions

services:
mysql:
mariadb:
image: mariadb:latest
env:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes
MARIADB_DATABASE: gangs
ports:
- 3306:3306

steps:
- name: Wait for MariaDB
run: |
until mysqladmin ping -h "localhost" --silent; do
echo "Waiting for database connection..."
sleep 2
done
build:
runs-on: ubuntu-latest
needs: db
strategy:
matrix:
dotnet-version: [ 6.0.x, 7.0.x, 8.0.x, 9.0.x ] # Test on multiple .NET versions

steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 8121461

Please sign in to comment.