- Contains a step that executes the GitHub action provided by this repo.
- Runs the action against a valid test template and a valid test issue form body.
- Checks that the output produced by the action is as expected.
- Runs the action against a valid test template and an invalid test issue form body.
- Checks that action should fail the workflow if the action fails.
Since this workflow executes the Docker container action it will build and execute the docker container so if there are any issues with the action's Dockerfile this workflow will detect it.
Note
For this workflow to be able to test the action when code is pushed I created an alternate action.yml
at /action-local
that will build the Docker image from the repo instead of using the Docker image published in the GitHub packages (which is what the action.yml
at the root of the repo does).
The downside of this approach is that I need to keep both action.yml
files, the one at the root of the repo and the one at /action-local
, in sync.
Alternativel, I could try to setup the workflows so that this test workflow only runs after the Docker image has been published. However this approach also has problems to solve such as making sure that the checks work as expected in a pull request scenario. The current approach eliminates all problems of this type with the only downside of keeping the action.yml
files in sync.