Skip to content
Snippets Groups Projects
Commit 776ddb51 authored by yodadado's avatar yodadado Committed by Pierre Smeyers
Browse files

fix(pnpm): double dash not supported by pnpm

parent 285778e9
No related branches found
No related tags found
No related merge requests found
...@@ -696,8 +696,13 @@ node-lint: ...@@ -696,8 +696,13 @@ node-lint:
# generate eslint report for SonarQube # generate eslint report for SonarQube
# shellcheck disable=SC2086 # shellcheck disable=SC2086
log_info "SonarQube detected: producing ESLint JSON report..." log_info "SonarQube detected: producing ESLint JSON report..."
if [ "$NODE_MANAGER" = "pnpm" ]
then
$NODE_MANAGER $NODE_LINT_ARGS --format=json --output-file=reports/node-lint.xslint.json || true
else
$NODE_MANAGER $NODE_LINT_ARGS -- --format=json --output-file=reports/node-lint.xslint.json || true $NODE_MANAGER $NODE_LINT_ARGS -- --format=json --output-file=reports/node-lint.xslint.json || true
fi fi
fi
# maybe add eslint-formatter-gitlab # maybe add eslint-formatter-gitlab
- | - |
if ! $NODE_MANAGER list | grep eslint-formatter-gitlab > /dev/null if ! $NODE_MANAGER list | grep eslint-formatter-gitlab > /dev/null
...@@ -707,7 +712,13 @@ node-lint: ...@@ -707,7 +712,13 @@ node-lint:
fi fi
# run ESLint with console output and GitLab report # run ESLint with console output and GitLab report
# shellcheck disable=SC2086 # shellcheck disable=SC2086
- ESLINT_CODE_QUALITY_REPORT=reports/node-lint.gitlab.json $NODE_MANAGER $NODE_LINT_ARGS -- --format=gitlab - |
if [ "$NODE_MANAGER" = "pnpm" ]
then
ESLINT_CODE_QUALITY_REPORT=reports/node-lint.gitlab.json $NODE_MANAGER $NODE_LINT_ARGS --format=gitlab
else
ESLINT_CODE_QUALITY_REPORT=reports/node-lint.gitlab.json $NODE_MANAGER $NODE_LINT_ARGS -- --format=gitlab
fi
artifacts: artifacts:
when: always # store artifact even if test Failed when: always # store artifact even if test Failed
name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG" name: "$CI_JOB_NAME artifacts from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment