From 5116373bcc784240b880fa93d6323571f807394e Mon Sep 17 00:00:00 2001 From: Brian Moon Date: Mon, 20 Nov 2023 15:17:30 -0600 Subject: [PATCH] try and get mysql working --- .github/workflows/ci.yml | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a6e2b4..918fc5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,25 +34,18 @@ jobs: --health-timeout 5s --health-retries 5 - # Label used to access the service container - db-mysql-sandbox: - # Docker Hub image - image: mysql - # Provide the password for postgres - env: - MYSQL_ROOT_PASSWORD: percona-root - MYSQL_DATABASE: mytestdb - MYSQL_USER: test - MYSQL_PASSWORD: test - # Set health checks to wait until postgres has started - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + env: + DB_DATABASE: mytestdb + DB_USER: test + DB_PASSWORD: test steps: + - name: Set up MySQL + run: | + sudo /etc/init.d/mysql start + mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} + - name: Checkout uses: actions/checkout@v3