Skip to content
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

automate testing for actions #50

Open
kelly-sovacool opened this issue Dec 23, 2024 · 0 comments
Open

automate testing for actions #50

kelly-sovacool opened this issue Dec 23, 2024 · 0 comments

Comments

@kelly-sovacool
Copy link
Member

kelly-sovacool commented Dec 23, 2024

GitHub Actions does not let you set actions versions dynamically, i.e. this does not work:

- uses: CCBR/actions/my-action@${{ inputs.version }}

Which means it may not be possible to automatically test github actions defined in this repo.

Perhaps a workaround is to trigger creation of a workflow file with the github sha? But it would need to be committed in order to run, which would clutter up the repo. Maybe do this in a separate repo? But how will status checks then show up in PRs for this repo?

It seems most people recommend having the majority of the workflow logic outside of actions so those pieces can be tested. But even so it would be ideal to test the action itself, as not everything can be broken out into separate scripts.

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

No branches or pull requests

1 participant