Skip to content

test: Use a template to prevent migrations from running for every test #2462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 27, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into fastpg
  • Loading branch information
kylecarbs committed Jun 22, 2022
commit 9eef36a867f9ae12c8ecbe695dc136e59e83c342
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ test: test-clean
gotestsum -- -v -short ./...
.PHONY: test

.PHONY: test-postgres-docker
test-postgres: test-clean
DB=ci gotestsum --junitfile="gotests.xml" --packages="./..." -- \
-covermode=atomic -coverprofile="gotests.coverage" -timeout=30m \
-coverpkg=./...,github.com/coder/coder/codersdk \
-count=1 -race -failfast
.PHONY: test-postgres

test-postgres-docker:
docker run \
--env POSTGRES_PASSWORD=postgres \
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.