Skip to content

Testing publish-Reposense on every push/PR on the main repo. #2384

@CYX22222003

Description

@CYX22222003

What feature(s) would you like to see in RepoSense

When any PR or changes that have been made on main repo, we want to trigger a workflow that will test the whole report-generation logic at the publish-Reposense with the new changes. This is to detect early regression.

Work done in #2295 explores the use of lighthouse CLI to detect possible blank pages due to possible routing issues.

To fully solve the issue, we may need to integrate the techniques to trigger workflow in another repository with Github Actions (ref)

Is the feature request related to a problem?

#2285
#2295

If possible, describe the solution

Some ideas on possible implementation:

  1. The event will trigger a POST request to the relevant API that will trigger the workflow in publish-Reposense, the request's payload should contain information such as PR number or commit hash.
  2. publish-Reposense need to check out to the correct version of main repo jar file using the payload through running the downloading utility scripts.
  3. Set up jekyll building environment to run github pages on publish-Reposense's github action runner
  4. Deploy the website on github action runner
  5. Use Lighthouse CLI to audit the website, it will exit with error when the page is blank.

Additional context

Useful resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions