Add .gitea/workflows/mysql.yml
This commit is contained in:
parent
5d7da63a24
commit
9ea09453fd
|
@ -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
|
Loading…
Reference in New Issue