Skip to content

Testing

jonasbn edited this page Apr 12, 2023 · 8 revisions

Testing entrypoint

Testing with parameterized files

Testing in local shell

INPUT_SOURCE_FILES="README.md CHANGELOG.md" INPUT_TASK_NAME=Markdown bash entrypoint.sh

Testing Using Docker

docker run -e INPUT_SOURCE_FILES="README.md CHANGELOG.md" \
           -e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \
           jonasbn/github-action-spellcheck:latest

Testing Using the Pushed Image

This step should be done prior to releasing to the GitHub Marketplace

Push the new built Docker image to DockerHub:

docker push jonasbn/github-action-spellcheck:latest

Change the version in: action.yml to jonasbn/github-action-spellcheck:latest

Run the actions, either via the UI or the CLI:

gh workflow run "Spellcheck Action"

Check the outcome:

gh run list --workflow=spelling_action.yml