-
Notifications
You must be signed in to change notification settings - Fork 0
DM-33936: Create GHAs to build containers and run unit tests. #4
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
Conversation
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.
Looks good. Sorry for the delay; it took me a while to understand some bits.
.github/workflows/build-service.yml
Outdated
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/build-service.yml' | ||
- 'python/activator/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/build-service.yml' | ||
- 'python/activator/**' | ||
branches: | ||
- main |
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.
Why have the build be on PR, but not on push? This will make it harder to test changes to the activator code (the main reason I can imagine wanting branch builds in the first place).
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.
It's on any update to the PR, including pushes to the branch that is being PRed. Pushes to non-PR branches are more likely to be in-development and not actually ready for testing.
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.
I don't follow. Isn't "in development" exactly when you want to test, while a PR means it's ready for use?
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.
I typically use non-PR (or draft PR) branches as places to save random commits that may not actually function, creating the PR only when I expect it to actually work.
But the workflows as written allow you to manually trigger a build on any branch (or ref) you'd like: Actions tab, "Select workflow" button, "Run workflow" button, enter branch/tag/ref.
Urgh. Except that we've never pushed a "latest" to GitHub. Let me see if I can fix that... |
Credentials are needed to pull the container for testing.
No description provided.