-
Notifications
You must be signed in to change notification settings - Fork 157
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
ci(workflows): run go tests on PR, adapt tests #27
Conversation
@@ -1,4 +1,3 @@ | |||
// go:build test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was invalid anyway and it has to go into the test file
@@ -1,3 +1,5 @@ | |||
//go:build integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integration
tag for integration tests
51de318
to
3dea917
Compare
go-version: '1.21' | ||
|
||
- name: Compose | ||
run: docker compose up -d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the generate
task needs compose because sqlc needs an sql file which is generated by prisma migrate which needs a live db
Adds go tests on push and PR
integration
build taggenerate
in a different job just to make sure that always works and doesn't break with any changes