dylan-smith / DiveIntelligence

1 stars 1 forks source link

Auto create PR testing environments #166

Closed dylan-smith closed 5 days ago

dylan-smith commented 1 month ago

Setup an actions workflow that runs on PR to stand up a new environment and deploy the PR code to it, then drop a comment in the PR about how to connect to it.

Need to also capture any PR updates and re-deploy them.

Azure Deployment Environments might be applicable.

Should run playwright tests against newly deployed environment to validate the deployment process worked.

dylan-smith commented 1 week ago

This code is relevant for environment cleanup on PR close: https://stackoverflow.com/questions/74069643/how-to-delete-azure-static-web-app-branch-preview-environments-when-deleting-sou

dylan-smith commented 1 week ago

getting date/time for PR comments: https://stackoverflow.com/questions/60942067/get-current-date-and-time-in-github-workflows

creating/updating PR comments: https://github.com/peter-evans/create-or-update-comment

better way to get date/time: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

dylan-smith commented 5 days ago

Video demo here: https://youtu.be/gp4jiF9iaXQ