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

add markdownlint testenv #119

Merged
merged 1 commit into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/tox_lsr/config_files/tox-default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -431,3 +431,22 @@ deps =
PyYAML
commands =
python {lsr_scriptdir}/check_meta_versions.py {posargs}

[testenv:markdownlint]
changedir = {toxinidir}
whitelist_externals = podman
bash
cat
rm
setenv =
{[testenv]setenv}
GITHUB_OUTPUT = /tmp/mdl.log
INPUT_PATH = .
commands = bash {lsr_scriptdir}/setup_module_utils.sh
{[lsr_config]commands_pre}
{env:LSR_CONTAINER_RUNTIME:podman} run --rm --privileged \
-v {toxinidir}:/workdir --workdir /workdir \
-e GITHUB_OUTPUT -e INPUT_PATH \
ghcr.io/actionshub/markdownlint:v3.1.3 \
{env:RUN_MARKDOWNLINT_EXTRA_ARGS:} {posargs}
{[lsr_config]commands_post}
18 changes: 18 additions & 0 deletions tests/fixtures/test_tox_merge_ini/result.ini
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,24 @@ setenv = {[testenv]setenv}
deps = PyYAML
commands = python {lsr_scriptdir}/check_meta_versions.py {posargs}

[testenv:markdownlint]
changedir = {toxinidir}
whitelist_externals = podman
bash
cat
rm
setenv = {[testenv]setenv}
GITHUB_OUTPUT = /tmp/mdl.log
INPUT_PATH = .
commands = bash {lsr_scriptdir}/setup_module_utils.sh
{[lsr_config]commands_pre}
{env:LSR_CONTAINER_RUNTIME:podman} run --rm --privileged \
-v {toxinidir}:/workdir --workdir /workdir \
-e GITHUB_OUTPUT -e INPUT_PATH \
ghcr.io/actionshub/markdownlint:v3.1.3 \
{env:RUN_MARKDOWNLINT_EXTRA_ARGS:} {posargs}
{[lsr_config]commands_post}

[custom_common]
setenv = CUSTOMCOMMON = customcommon
commands = customcommoncmd
Expand Down