mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
ci: Linter EC should use /check
as the mount path (#3655)
This commit is contained in:
parent
cedd360ebd
commit
ba814f4213
|
@ -17,11 +17,14 @@ SHELLCHECK_VERSION='0.9.0'
|
||||||
source "${REPOSITORY_ROOT}/target/scripts/helpers/log.sh"
|
source "${REPOSITORY_ROOT}/target/scripts/helpers/log.sh"
|
||||||
|
|
||||||
function _eclint() {
|
function _eclint() {
|
||||||
|
# `/check` is used instead of `/ci` as the mount path due to:
|
||||||
|
# https://github.com/editorconfig-checker/editorconfig-checker/issues/268#issuecomment-1826200253
|
||||||
|
# `.ecrc.json` continues to explicitly ignores the `.git/` path to avoid any potential confusion
|
||||||
if docker run --rm --tty \
|
if docker run --rm --tty \
|
||||||
--volume "${REPOSITORY_ROOT}:/ci:ro" \
|
--volume "${REPOSITORY_ROOT}:/check:ro" \
|
||||||
--workdir "/ci" \
|
--workdir "/check" \
|
||||||
--name dms-test_eclint \
|
--name dms-test_eclint \
|
||||||
"mstruebing/editorconfig-checker:${ECLINT_VERSION}" ec -config "/ci/test/linting/.ecrc.json"
|
"mstruebing/editorconfig-checker:${ECLINT_VERSION}" ec -config "/check/test/linting/.ecrc.json"
|
||||||
then
|
then
|
||||||
_log 'info' 'ECLint succeeded'
|
_log 'info' 'ECLint succeeded'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue