Commit 7dd719ba authored by Sonja Happ's avatar Sonja Happ
Browse files

CI: add test job for file endpoints without S3 object storage

parent ddd43f4d
...@@ -91,6 +91,32 @@ test: ...@@ -91,6 +91,32 @@ test:
dependencies: dependencies:
- build - build
test:files_postgres:
stage: test
extends: .go
variables:
POSTGRES_DB: testvillasdb
POSTGRES_USER: villas
POSTGRES_PASSWORD: villas
POSTGRES_HOST: postgres
PORT: 4000
DB_NAME: ${POSTGRES_DB}
DB_HOST: ${POSTGRES_HOST}
DB_USER: ${POSTGRES_USER}
DB_PASS: ${POSTGRES_PASSWORD}
BASE_PATH: /api
MODE: release
ADMIN_USER: User_0
ADMIN_PASS: xyz789
services:
- postgres:latest
script:
- go mod tidy
- cd routes/file
- go test -v
dependencies:
- build
# Stage: deploy # Stage: deploy
############################################################################## ##############################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment