Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106-2024-07
frontend
Commits
2126a686
Commit
2126a686
authored
11 months ago
by
Andreas
Browse files
Options
Downloads
Patches
Plain Diff
refactor/Updated .gitlab-ci.yml by improving job install_dependencies
parent
b1ef405a
No related branches found
Branches containing commit
No related tags found
1 merge request
!13
Updated workflow to be run in a docker image and added job for checking lint
Pipeline
#274133
failed
11 months ago
Stage: install_dependencies
Stage: lint
Stage: build_project
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+4
-6
4 additions, 6 deletions
.gitlab-ci.yml
with
4 additions
and
6 deletions
.gitlab-ci.yml
+
4
−
6
View file @
2126a686
...
...
@@ -6,26 +6,24 @@ stages:
-
build_project
cache
:
key
:
"
node
repository"
# Stat
ic
C
ache
K
ey to
keep
cache across branches
paths
:
key
:
"
${CI_COMMIT_REF_SLUG}"
# Branch-specif
ic
c
ache
k
ey
s
to
have separate
cache
s
across branches
.
paths
:
-
node_modules/
install_dependencies
:
stage
:
install_dependencies
image
:
node:latest
script
:
-
npm install
-
apk add --no-cache git
# For instances where installations require git
-
npm ci --prefer-offline
# --prefer-offline to make it prefer using locally cached packages rather than downloading
lint
:
stage
:
lint
image
:
node:latest
script
:
-
npm run lint
allow_failure
:
true
build_project
:
stage
:
build_project
image
:
node:latest
script
:
-
npm run build
This diff is collapsed.
Click to expand it.
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