Generate report with github pages
OR13 opened this issue · comments
In order to automatically deploy the latest report results the following would need to happen:
- CI is passing, and JSON output files are autoamtically generateted on every merge to main.
- JSON output files are injected into index.html / respec sections
- GitHub Pages hosting is set to "gh-pages branch"
- GitHub Pages deploy is handled via CI
@OR13 With discussion with @msporny
A few things changed while I'm working on the report generation. Since we have 3000+ test results, and the report generation is slow, we don't commit the test result JSON object anymore, also statically generate the report.
- index.html is removed, the report is currently generated at
packages/did-core-test-suite/report/index.html
- We're not injecting JSON to index.html anymore. Report generator reads JSON and generates the index.html from the
report-template.html
template file. - So, what we need is to place the generated index.html file on "gh-pages" branch after running
lerna run test-and-generate-report
This is done, I think.
@iherman, can you please switch this repository over to serve Github pages from the gh-pages branch?
Done, @msporny
Done, @msporny
Confirmed, we are now auto-generating the latest test report and publishing to gh-pages: https://w3c.github.io/did-test-suite/
woo! Thanks to everyone in this issue that made it happen.