Add test-reports workflow for develop and main with badges #284
Conversation
The badges don't seem to render for me on the front page of the branch: |
Yes. I updated the README.md to reference the main branch as that is what it would be when we merge to main. The goal of this is to show the status of the workflow that is run against the stable/release branch which is what main is right now. I could entertain the idea that develop is more important to show at this time as it represents the next release. Unfortunately, markdown doesn't have variable substitution that would allow us to make it dynamic per branch. As I write that, I wonder if I can do something on the badge hosting side to server based on CORS... |
Sounds good, just wanted to confirm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
team repo-admins needs to be prefixed with our org.
Describe your changes
test-reports.yml workflow will run on pushes to develop and main. It can also be triggered for other branches but the badges will not be updated. Badges are updated by pushing a generated badge to S3 that is referenced in the README.md. The README.md references the badges for the main branch but the URL to retrieve the badges for develop can be discovered easily.
The permissions to write to the S3 bucket are limited to this workflow running on the develop and main branch.
Examples of the badges generated for the last run on this branch before lockdown in AWS:
Issue ticket number and link
This was a request in Slack.
Known outstanding issues that are not fully accounted for
Checklist before requesting a review
Extra-mile Checklist