market-sentiment-analyzer-tool / msat

A Market Sentiment Analyzer Tool (Sheep Indicator) with the mission of offering valuable insight to investors aiming to decode the market sentiments efficiently.
1 stars 1 forks source link

GitHub Action Workflow cannot run MySQL #16

Open Hugo-Pare opened 1 day ago

Hugo-Pare commented 1 day ago

Possible solution: Create a test database within the GitHub Actions environment using a service container.


  database-tests:
    runs-on: ubuntu-latest
    services:
      mysql:
        image: mysql:latest
        env:
          MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
          MYSQL_DATABASE: ${MYSQL_DATABASE}
          MYSQL_USER: ${MYSQL_USER}
        ports:
          - 3306:3306
        options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3