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 @@ -253,6 +253,8 @@ jobs:
253253 unit_type :
254254 - unit-race
255255 - unit
256+ - unit dbbackend=postgres
257+ - unit dbbackend=sqlite
256258 steps :
257259 - name : git checkout
258260 uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -24,6 +24,16 @@ UNIT_TARGETED = yes
2424GOLIST = echo '$(PKG ) /$(pkg ) '
2525endif
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.
2838ifneq ($(tags ) ,)
2939DEV_TAGS += ${tags}
You can’t perform that action at this time.
0 commit comments