ci config
All checks were successful
Build Project / TestWithDb (push) Successful in 27s

This commit is contained in:
Martin Below 2024-06-10 09:44:53 +02:00
parent 427d98a402
commit c98a08fc49

View File

@ -23,5 +23,7 @@ jobs:
run: apt-get -y install mariadb-server run: apt-get -y install mariadb-server
- name: start mariadb server - name: start mariadb server
run: mkdir /var/run/mysqld ; chown mysql:mysql /var/run/mysqld ; su mysql -s /bin/bash -c mariadbd & run: mkdir /var/run/mysqld ; chown mysql:mysql /var/run/mysqld ; su mysql -s /bin/bash -c mariadbd &
- name: create database and user
run: echo "create database wazzl; create user wazzl identified by 'wazzl'; grant all privileges on wazzl.* to wazzl;" | su mysql -s /bin/bash -c mysql
- name: try to connect to db - name: try to connect to db
run: nc -w5 -z -v db 3306 || nc -w5 -z -v localhost 3306 run: nc -w5 -z -v localhost 3306 || nc -w5 -z -v db 3306