-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some basic tests, more work to be done and preparing a bug fix …
…release
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@test "can do basic run using Docker image with two input files" { | ||
docker run -e INPUT_SOURCE_FILES="README.md CHANGELOG.md" \ | ||
-e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image with unignored and ignored input files" { | ||
docker run -e INPUT_SOURCE_FILES="README.md venv/lib/python3.13/site-packages/pyspelling-2.10.dist-info/licenses/LICENSE.md" \ | ||
-e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image with just ignored input file" { | ||
docker run -e INPUT_SOURCE_FILES="venv/lib/python3.13/site-packages/pyspelling-2.10.dist-info/licenses/LICENSE.md" \ | ||
-e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image without any input files" { | ||
docker run \ | ||
-e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image without task parameter" { | ||
docker run \ | ||
-it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image with two input files but not task parameter" { | ||
! docker run -e INPUT_SOURCE_FILES="README.md CHANGELOG.md" \ | ||
-it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} | ||
|
||
@test "can do basic run using Docker image with two non-existing input files" { | ||
! docker run -e INPUT_SOURCE_FILES="DONOTREADME.md LOGCHANGE.md" \ | ||
-e INPUT_TASK_NAME=Markdown -it -v $PWD:/tmp \ | ||
jonasbn/github-action-spellcheck:local | ||
} |