-
Notifications
You must be signed in to change notification settings - Fork 27
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
Testing .github/workflows/test-report.yml in public repos #50
Comments
I suppose it's this (NPI): test-reporting/src/input-providers/artifact-provider.ts Lines 53 to 56 in fcf3649
When run from a Any thoughts on being able to make this action simulate a
workflow_dispatch with an input perhaps?
Or am I barking up the completely wrong tree here in trying to test my |
One feature I've just started using myself is to create the artifact and to run the report for that artifact in the same CI pipeline, so there's no issue with locating the required artifact. |
@IanMoroney AFAIU, your solution doesn't work for PR's from forks for public repositories (which is what this entire issue is about). It also doesn't work for workflows that might take longer than 24h (i.e. on self-hosted runners) to complete execution because the |
You should be able to get around the token issue by specifying your own PAT token instead. As for the PR's from forks issue, it's a github limitation. The PR doesn't need to be merged though in order to get a report. Example: |
Of course, that is how it works once all of the kinks have been worked out and every is merged so that it runs like that. What I am asking about though is testing the |
Hello.
Per your description for Recommended setup for public repositories how does the
artifact:
option know which triggering run to go fetch the artifacts from?More to the point however, is do you have any advise on how one can test/debug their implementation of
.github/workflows/test-report.yml
in a PR -- without having to iterate on landing updates to make it work to the master branch?I have tried adding
on:
->workflow_dispatch
to my.github/workflows/test-report.yml
and then running the workflow manually with:But that manual run doesn't find artifacts to report on:
likely because it has no linkage back to a
.github/workflows/ci.yml
that uploaded artifacts?The text was updated successfully, but these errors were encountered: