Skip to content

Commit

Permalink
make+GH: helpers for testing against new SQL stores
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed Jan 31, 2025
1 parent 32eb4c5 commit 21c0677
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ jobs:
unit_type:
- unit-race
- unit
- unit dbbackend=postgres
- unit dbbackend=sqlite
steps:
- name: git checkout
uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions make/testing_flags.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ UNIT_TARGETED = yes
GOLIST = echo '$(PKG)/$(pkg)'
endif

# Add the build tag for running unit tests against a postgres DB.
ifeq ($(dbbackend),postgres)
DEV_TAGS += test_db_postgres
endif

# Add the build tag for running unit tests against a sqlite DB.
ifeq ($(dbbackend),sqlite)
DEV_TAGS += test_db_sqlite
endif

# Add any additional tags that are passed in to make.
ifneq ($(tags),)
DEV_TAGS += ${tags}
Expand Down

0 comments on commit 21c0677

Please sign in to comment.