Put ci.yml in the correct folder #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MySQL Service Connect | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
unit-test: | |
name: Unit Testing | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:8.0 | |
env: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: db | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | |
steps: | |
- name: Verify MySQL connection from host | |
run: mysql --host mysql --port 3306 -uroot -ppassword -e "SHOW DATABASES" |