Skip to content

expose tests as composite actions #85

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jeremyd2019
Copy link
Member

As I mentioned in #24 (comment), this creates 2 composite actions: one that generates a matrix, and another that runs the tests. This allows the tests to be used easily from another repository. For an example of this, see msys2/msys2-runtime@msys2-3.6.0...jeremyd2019:msys2-runtime:run-tests (of course, the actions would be msys2/msys2-tests@main rather than my fork/branch).

The one mild drawback I saw with this is that it shows the entire composite action as one top-level "step" in the job view, but does still have the collapsed "group" for each sub-step showing the step information.

While testing this, I saw a failure due to the .lnk link files being larger than 1000 bytes, because when calling a composite action from another repository the path is longer. Added a fix for that.

@jeremyd2019
Copy link
Member Author

For another data point, I did a PR for git-for-windows git-sdk-64 and msys2-runtime using a callable workflow. In that case, the lack of being able to add steps was OK because @dscho already had the workflow set up to get everything it's testing via artifacts, so doing any customization can be in a prior job that generates the artifacts.

First part of making the tests a composite action that can be called
from other repositories.
this will allow running them from another repository
@jeremyd2019
Copy link
Member Author

I've rebased this and included the changes from #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant