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

chore: publish test reports to github pages [WD-7907] #579

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

mas-who
Copy link
Collaborator

@mas-who mas-who commented Dec 12, 2023

Done

  • Created an orphan branch gh-pages from which github pages for this repository will deploy
  • Added a new job in pr.yaml to use the artifact produced by the e2e test job and push it to the gh-pages branch. This takes into consideration that multiple pr actions may be running at the same time. Lastly, the job will run if the e2e tests failed or succeeded and output a url for the test reports.
  • Added a new action triggered on PR merge so that test reprorts gets cleaned up on the gh-pages branch.

@webteam-app
Copy link

Demo starting at https://lxd-ui-579.demos.haus

@mas-who mas-who force-pushed the playwright-to-gh-pages branch 8 times, most recently from b35e895 to a44e292 Compare December 13, 2023 11:12
@mas-who mas-who requested a review from edlerd December 13, 2023 11:21
Copy link
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite nice. Some questions and ideas below. Happy to discuss them over a call.

.github/workflows/delete_test_reports.yml Show resolved Hide resolved
.github/workflows/delete_test_reports.yml Outdated Show resolved Hide resolved
.github/useful_act_commands.md Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/delete_test_reports.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one nit about the commenting of the while loops. Feel free to merge as is though.

.github/workflows/delete_test_reports.yml Show resolved Hide resolved
Signed-off-by: Mason Hu <mason.hu@canonical.com>
@mas-who
Copy link
Collaborator Author

mas-who commented Dec 13, 2023

LGTM, just one nit about the commenting of the while loops. Feel free to merge as is though.

Aaah right, it's a shell script actually so it should be fine. I've moved the comment to within the run command on both actions now.

@mas-who mas-who changed the title chore: publish test reports to github pages chore: publish test reports to github pages [WD-7907] Dec 13, 2023
@mas-who mas-who merged commit 9044dcd into main Dec 13, 2023
7 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 13, 2023
@edlerd edlerd deleted the playwright-to-gh-pages branch February 21, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants