From 7b7e980ddc6631a66efe08c9cdc068ed52c31949 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 28 Jun 2024 21:00:34 +0200 Subject: [PATCH] Update build.yml use action instead of docker image for mariadb --- .github/workflows/build.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cf93eea..1c2d8584 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,21 +17,13 @@ jobs: strategy: matrix: node-version: [18.x] - - services: - mariadb: - image: mariadb:lts - ports: - - 3306 - env: - MYSQL_USER: user - MYSQL_PASSWORD: password - MYSQL_DATABASE: pigallery_test - MYSQL_ROOT_PASSWORD: password - options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 - - steps: + - uses: getong/mariadb-action@v1.11 + with: + mysql database: 'pigallery_test' + mysql root password: 'password' + mysql user: 'user' + mysql password: 'password' - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4