Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Node.js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Node.js
Commits
776ddb51
Commit
776ddb51
authored
1 month ago
by
yodadado
Committed by
Pierre Smeyers
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(pnpm): double dash not supported by pnpm
parent
285778e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-node.yml
+13
-2
13 additions, 2 deletions
templates/gitlab-ci-node.yml
with
13 additions
and
2 deletions
templates/gitlab-ci-node.yml
+
13
−
2
View file @
776ddb51
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
0930ddd9
·
1 month ago
mentioned in commit
0930ddd9
mentioned in commit 0930ddd9b7685a1ece7f1ba3b4b1540da093c922
Toggle commit list
PROJECT_GITLAB_CI
@project_11147_bot_1c97af4472ef25a2cda6700ebf56f6c9
mentioned in commit
df605061
·
1 month ago
mentioned in commit
df605061
mentioned in commit df605061bf66d4b4d144cb3123fee39b4e4e996f
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment