ci config
Some checks failed
Build Project / TestWithDb (push) Failing after 13s

This commit is contained in:
Martin Below 2024-06-10 11:33:01 +02:00
parent df7a50c7e4
commit 15529aafe6

View File

@ -23,11 +23,11 @@ jobs:
run: echo "password ${{ secrets.GITEA_TOKEN }}"
- name: install netcat
run: apt-get -y update ; apt -y install netcat-openbsd
- name: install mariadb server
run: apt-get -y update ; apt-get -y install mariadb-server
- name: start mariadb server
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: install mariadb server
# run: apt-get -y update ; apt-get -y install mariadb-server
# - name: start mariadb server
# 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
run: nc -w5 -z -v localhost 3306 || nc -w5 -z -v db 3306
run: nc -w5 -z -v 127.0.0.1 3306 || nc -w5 -z -v db 3306