File tree Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change 22
33on : [push, pull_request, workflow_dispatch]
44jobs :
5- test :
5+ test-mysql :
66 strategy :
77 # https://www.mysql.com/support/supportedplatforms/database.html
88 matrix :
6363 run : |
6464 sudo debconf-set-selections <<EOF
6565 mysql-apt-config mysql-apt-config/select-server select mysql-8.4-lts
66+ EOF
6667 - if : matrix.client == '9.2'
6768 run : |
6869 sudo debconf-set-selections <<EOF
8081 make
8182 - name : " Run test"
8283 run : make test
84+
85+ test-mariadb :
86+ runs-on : ' ubuntu-latest'
87+ services :
88+ mariadb :
89+ image : ' mariadb:latest'
90+ env :
91+ MARIADB_ALLOW_EMPTY_ROOT_PASSWORD : 1
92+ ports :
93+ - 3306:3306
94+ options : --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
95+ steps :
96+ - uses : actions/checkout@v4
97+ - name : " Setup generic dependencies"
98+ run : |
99+ sudo apt update
100+ sudo apt install -y \
101+ gcc \
102+ gnupg \
103+ libdbi-perl \
104+ libdevel-checklib-perl \
105+ libtest-deep-perl \
106+ libtest-pod-perl \
107+ lsb-release \
108+ make \
109+ wget
110+ sudo debconf-set-selections <<EOF
111+ mysql-apt-config mysql-apt-config/select-server select mysql-8.4-lts
112+ EOF
113+ wget https://dev.mysql.com/get/mysql-apt-config_0.8.33-1_all.deb
114+ DEBIAN_FRONTEND="noninteractive" sudo dpkg -i mysql-apt-config_0.8.33-1_all.deb
115+ sudo apt update
116+ sudo apt install -y libmysqlclient-dev
117+ - name : " Run build"
118+ run : |
119+ perl Makefile.PL --testhost=127.0.0.1 --testuser=root
120+ make
121+ - name : " Run test"
122+ run : make test
You can’t perform that action at this time.
0 commit comments