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

This commit is contained in:
Martin Below 2024-06-10 07:24:56 +02:00
parent 28b21b6565
commit c1161d6cf4

View File

@ -5,18 +5,17 @@ jobs:
TestWithDb:
runs-on: ubuntu-latest
services:
database:
db:
image: mariadb:11.4.2-ubi9
environment:
MARIADB_DATABASE: "wazzl"
MARIADB_USER: "wazzl"
MARIADB_PASSWORD: "wazzl"
MARIADB_DATABASE: "test"
MARIADB_USER: "test"
MARIADB_PASSWORD: "test"
MARIADB_ROOT_PASSWORD: root
MARIADB_MYSQL_LOCALHOST_GRANTS: "wazzl"
MARIADB_MYSQL_LOCALHOST_GRANTS: "test"
container:
steps:
- name: install required stuff
run: apt-get -y update ; apt -y install netcat-openbsd
- name: run tests
run: which nc; nc localhost 3306
- name: try to connect to db
run: nc -w5 -z -v localhost 3306 || nc -w5 -z -v db 3306