Closed dylan-smith closed 5 days 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
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/
Video demo here: https://youtu.be/gp4jiF9iaXQ
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.