Skip to content

Commit 9d7f3bf

Browse files
committed
build: add postgres unit tests to makefile and CI
1 parent 3ee5bb6 commit 9d7f3bf

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020

2121
# If you change this value, please change it in the following files as well:
2222
# /Dockerfile
23-
GO_VERSION: 1.19.2
23+
GO_VERSION: 1.20.4
2424

2525
jobs:
2626
########################
@@ -124,3 +124,6 @@ jobs:
124124

125125
- name: run unit tests
126126
run: make unit
127+
128+
- name: run unit test with postgres
129+
run: make unit-postgres

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=${BUILDPLATFORM} golang:1.19.7-alpine as builder
1+
FROM --platform=${BUILDPLATFORM} golang:1.20.4-alpine as builder
22

33
# Copy in the local repository to build from.
44
COPY . /go/src/github.com/lightningnetwork/loop

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ unit:
9595
@$(call print, "Running unit tests.")
9696
$(UNIT)
9797

98+
unit-postgres:
99+
@$(call print, "Running unit tests with postgres.")
100+
$(UNIT) -tags=test_db_postgres
101+
98102
# =========
99103
# UTILITIES
100104
# =========

0 commit comments

Comments
 (0)