diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4aadbd4..3a56233 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ env: # If you change this value, please change it in the following files as well: # /Dockerfile - GO_VERSION: 1.19.2 + GO_VERSION: 1.20.4 jobs: ######################## @@ -124,3 +124,6 @@ jobs: - name: run unit tests run: make unit + + - name: run unit test with postgres + run: make unit-postgres diff --git a/Dockerfile b/Dockerfile index 080f98a..abeb0fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . /go/src/github.com/lightningnetwork/loop diff --git a/Makefile b/Makefile index a3a2232..0f5ff9d 100644 --- a/Makefile +++ b/Makefile @@ -95,6 +95,10 @@ unit: @$(call print, "Running unit tests.") $(UNIT) +unit-postgres: + @$(call print, "Running unit tests with postgres.") + $(UNIT) -tags=test_db_postgres + # ========= # UTILITIES # =========