Add .gitea/workflows/mysql.yml

This commit is contained in:
Lunny Xiao 2024-01-29 06:53:15 +00:00
parent 5d7da63a24
commit 9ea09453fd
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
name: test mysql8
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: test mysql8
runs-on: ubuntu-latest
steps:
- run: apt-get install -y default-mysql-client
- run: mysql -h mysql8 -u root -e '\q'
services:
mysql8:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: test_db
ports:
- 3306:3306