File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ jobs:
210
210
unit_type :
211
211
- unit-race
212
212
- unit
213
+ - unit dbbackend=postgres
214
+ - unit dbbackend=sqlite
213
215
steps :
214
216
- name : git checkout
215
217
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -24,6 +24,16 @@ UNIT_TARGETED = yes
24
24
GOLIST = echo '$(PKG ) /$(pkg ) '
25
25
endif
26
26
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
+
27
37
# Add any additional tags that are passed in to make.
28
38
ifneq ($(tags ) ,)
29
39
DEV_TAGS += ${tags}
You can’t perform that action at this time.
0 commit comments