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 uses: ludeeus/action-shellcheck@master
env: env:
SHELLCHECK_OPTS: --shell=bash --external-sources SHELLCHECK_OPTS: --shell=bash --external-sources
INPUT_ADDITIONAL_FILE_ARGS: -o -name '*.envsh'
with: with:
scandir: ./docker/ scandir: ./docker/

View file

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