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

Make test required to run successfully before deploying previews #35

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

brauliorivas
Copy link
Member

BEGINRELEASENOTES

  • Previews used to deploy without caring if the test suite ran successfully or not.
  • From now on, exists a workflow file called test-previews.yml that would test only previews. If completed successfully, then previews will deploy. This will save time and resources.

ENDRELEASENOTES
As proposed by @kjvbrt, these changes will improve the overall deployment process.
As usual, I've tested this on my "testing" repository. So basically, when opening a pull request, the preview workflow will be called. However, it then calls to Test previews which will checkout to the fork (PR) and test that code. Then if completed successfully, continues with normal deployment for previews. In theory, this won't run until merged, because the test-previews workflow should be in the repo, but currently isn't.

Copy link

github-actions bot commented Jun 5, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-06-06 08:47 UTC

@kjvbrt
Copy link
Collaborator

kjvbrt commented Jun 6, 2024

Is it working because the action running is actually the one which is in the main branch?
Anyway, looks good. Merging...

@kjvbrt kjvbrt merged commit 74755b1 into key4hep:main Jun 6, 2024
1 check passed
@kjvbrt kjvbrt temporarily deployed to github-pages June 6, 2024 08:46 — with GitHub Actions Inactive
@kjvbrt kjvbrt temporarily deployed to github-pages June 6, 2024 08:47 — with GitHub Actions Inactive
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