build: add postgres unit tests to makefile and CI

pull/585/head
sputn1ck 11 months ago
parent 3ee5bb6365
commit 9d7f3bf2fa
No known key found for this signature in database
GPG Key ID: 671103D881A5F0E4

@ -20,7 +20,7 @@ env:
# If you change this value, please change it in the following files as well: # If you change this value, please change it in the following files as well:
# /Dockerfile # /Dockerfile
GO_VERSION: 1.19.2 GO_VERSION: 1.20.4
jobs: jobs:
######################## ########################
@ -124,3 +124,6 @@ jobs:
- name: run unit tests - name: run unit tests
run: make unit run: make unit
- name: run unit test with postgres
run: make unit-postgres

@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM} golang:1.19.7-alpine as builder FROM --platform=${BUILDPLATFORM} golang:1.20.4-alpine as builder
# Copy in the local repository to build from. # Copy in the local repository to build from.
COPY . /go/src/github.com/lightningnetwork/loop COPY . /go/src/github.com/lightningnetwork/loop

@ -95,6 +95,10 @@ unit:
@$(call print, "Running unit tests.") @$(call print, "Running unit tests.")
$(UNIT) $(UNIT)
unit-postgres:
@$(call print, "Running unit tests with postgres.")
$(UNIT) -tags=test_db_postgres
# ========= # =========
# UTILITIES # UTILITIES
# ========= # =========

Loading…
Cancel
Save