implement automatic shellcheck linting

This commit is contained in:
Christian Winther 2024-01-15 17:23:32 +00:00
parent f2f2517503
commit b2d6d3dbe7
2 changed files with 13 additions and 8 deletions

View File

@ -48,6 +48,7 @@ jobs:
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: --shell=bash --external-sources
INPUT_ADDITIONAL_FILE_ARGS: -o -name '*.envsh'
with:
scandir: ./docker/

View File

@ -32,16 +32,20 @@ fi
pecl install "${PHP_PECL_EXTENSIONS}" "${PHP_PECL_EXTENSIONS_EXTRA}"
# PHP extensions (dependencies)
#
# shellcheck disable=SC2086
docker-php-ext-install \
-j "$(nproc)" \
"${PHP_EXTENSIONS}" \
"${PHP_EXTENSIONS_EXTRA}" \
"${PHP_EXTENSIONS_DATABASE}"
${PHP_EXTENSIONS} \
${PHP_EXTENSIONS_EXTRA} \
${PHP_EXTENSIONS_DATABASE}
# Enable all extensions
#
# shellcheck disable=SC2086
docker-php-ext-enable \
"${PHP_PECL_EXTENSIONS}" \
"${PHP_PECL_EXTENSIONS_EXTRA}" \
"${PHP_EXTENSIONS}" \
"${PHP_EXTENSIONS_EXTRA}" \
"${PHP_EXTENSIONS_DATABASE}"
${PHP_PECL_EXTENSIONS} \
${PHP_PECL_EXTENSIONS_EXTRA} \
${PHP_EXTENSIONS} \
${PHP_EXTENSIONS_EXTRA} \
${PHP_EXTENSIONS_DATABASE}