gitea-actions-playground/.gitea/workflows/default.yml
Martin Below 3b32ae49a7
Some checks failed
Build Project / TestWithDb (push) Failing after 30s
ci config
2024-06-10 07:42:14 +02:00

23 lines
608 B
YAML

name: Build Project
on: [push]
jobs:
TestWithDb:
runs-on: ubuntu-latest
services:
db:
image: mariadb:11.4.2-ubi9
ports:
- 3306:3306
environment:
MARIADB_DATABASE: "test"
MARIADB_USER: "test"
MARIADB_PASSWORD: "test"
MARIADB_ROOT_PASSWORD: root
MARIADB_MYSQL_LOCALHOST_GRANTS: "test"
steps:
- name: install required stuff
run: apt-get -y update ; apt -y install netcat-openbsd
- name: try to connect to db
run: nc -w5 -z -v db 3306 || nc -w5 -z -v localhost 3306