Skip to content

Put ci.yml in the correct folder #1

Put ci.yml in the correct folder

Put ci.yml in the correct folder #1

Workflow file for this run

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"