mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
build: add postgres unit tests to makefile and CI
This commit is contained in:
parent
3ee5bb6365
commit
9d7f3bf2fa
3 changed files with 9 additions and 2 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
4
Makefile
4
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
|
||||
# =========
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue