Skip to content

fix: makefile and docker-compose fix issues #40

fix: makefile and docker-compose fix issues

fix: makefile and docker-compose fix issues #40

Workflow file for this run

name: "Tests"
on: [pull_request]
jobs:
tests:
runs-on: [ default ]
services:
mariadb:
image: mariadb:latest
ports:
- "3306:3306"
env:
MARIADB_USER: my_username
MARIADB_PASSWORD: my_password
MARIADB_DATABASE: heureka
MARIADB_ROOT_PASSWORD: my_password
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Install Ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: Run Tests
env:
DB_USER: my_username
DB_PASSWORD: my_password
DB_ROOT_PASSWORD: my_password
DB_NAME: heureka
DB_ADDRESS: localhost
DB_PORT: 3306
DB_SCHEMA: internal/database/mariadb/init/schema.sql
LOCAL_TEST_DB: true
run: ginkgo -r -randomize-all -randomize-suites