Skip to content

Conversation

@briantist
Copy link
Collaborator

@briantist briantist commented Jan 15, 2022

Here's a first pass at a workflow that runs tests for an action.

This one aims to test the ansible-docs-build-html action. I kept it simple so I could get it uploaded first.

IIRC, even though this branch is in the main repository, I believe it still will not run in this PR until it lands in main once (after that, changes to it should run in PRs). I was wrong! I guess that only applies to new workflows from forks, and pull_request_target triggers in all cases.

EDIT: writing tests for the move-build parameter made me realize I was not moving the files, but rather copying them! Instead of changing the behavior, I've changed the name of the parameter to copy-build and have updated its usage, references, and descriptions, and the tests confirm its behavior.

@briantist briantist marked this pull request as draft January 15, 2022 19:18
@briantist briantist changed the title first pass at action testing ansible-docs-build-html - first tests, rename move-build to copy-build Jan 15, 2022
@briantist briantist marked this pull request as ready for review January 15, 2022 20:16
briantist added a commit that referenced this pull request Jan 15, 2022
@felixfontein felixfontein merged commit 5375959 into main Jan 16, 2022
@felixfontein felixfontein deleted the tests/actions/build-html branch January 16, 2022 18:44
@felixfontein
Copy link
Collaborator

@briantist thanks for adding tests!

felixfontein pushed a commit that referenced this pull request Jan 16, 2022
* add tests for build-init action

* add .test path from #18

* add a requirements.txt

* flesh out the init tests

* fix defaulted

* fix defaults again

* round 3
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.

3 participants