Skip to content
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

Do not run tests a second time before deploying #2

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

chuckwondo
Copy link
Collaborator

@chuckwondo chuckwondo commented Nov 20, 2024

Since pushes to develop and main occur only via PR merges, there's no need to run tests prior to deployment because the tests must have already passed in order to permit PR merging. In this case, running tests again is redundant since they would be run again on identical code.

This PR removes the deploy job from depending on the unit-tests and integration-tests jobs. This dependency previously prevented deployment from occurring because unit-tests and integration-tests were skipped on "push" to the develop and main branches. Thus, deployment to develop was skipped since its (now obsolete) dependencies were skipped.

The change in the PR was an oversight in the previous PR that prevented the tests from running redundantly on pushes.

Since pushes to `develop` and `main` occur _only_ via PR merges, there's
no need to run tests prior to deployment because the tests _must_ have
already passed in order to permit PR merging. In this case, running
tests again is redundant since they would be run again on identical
code.
@chuckwondo chuckwondo merged commit 84ed82d into develop Nov 20, 2024
9 of 10 checks passed
@chuckwondo chuckwondo deleted the fix-deploy branch November 20, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants