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: TestWithDb:
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
database: db:
image: mariadb:11.4.2-ubi9 image: mariadb:11.4.2-ubi9
environment: environment:
MARIADB_DATABASE: "wazzl" MARIADB_DATABASE: "test"
MARIADB_USER: "wazzl" MARIADB_USER: "test"
MARIADB_PASSWORD: "wazzl" MARIADB_PASSWORD: "test"
MARIADB_ROOT_PASSWORD: root MARIADB_ROOT_PASSWORD: root
MARIADB_MYSQL_LOCALHOST_GRANTS: "wazzl" MARIADB_MYSQL_LOCALHOST_GRANTS: "test"
container: steps:
steps: - name: install required stuff
- name: install required stuff run: apt-get -y update ; apt -y install netcat-openbsd
run: apt-get -y update ; apt -y install netcat-openbsd - name: try to connect to db
- name: run tests run: nc -w5 -z -v localhost 3306 || nc -w5 -z -v db 3306
run: which nc; nc localhost 3306