Skip to content

Commit 87fa366

Browse files
committed
make+GH: helpers for testing against new SQL stores
1 parent 0585b34 commit 87fa366

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ jobs:
210210
unit_type:
211211
- unit-race
212212
- unit
213+
- unit dbbackend=postgres
214+
- unit dbbackend=sqlite
213215
steps:
214216
- name: git checkout
215217
uses: actions/checkout@v3

make/testing_flags.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ UNIT_TARGETED = yes
2424
GOLIST = echo '$(PKG)/$(pkg)'
2525
endif
2626

27+
# Add the build tag for running unit tests against a postgres DB.
28+
ifeq ($(dbbackend),postgres)
29+
DEV_TAGS += test_db_postgres
30+
endif
31+
32+
# Add the build tag for running unit tests against a sqlite DB.
33+
ifeq ($(dbbackend),sqlite)
34+
DEV_TAGS += test_db_sqlite
35+
endif
36+
2737
# Add any additional tags that are passed in to make.
2838
ifneq ($(tags),)
2939
DEV_TAGS += ${tags}

0 commit comments

Comments
 (0)