Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
21
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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_2022_02
boco-frontend
Commits
3a21ed6c
Commit
3a21ed6c
authored
2 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' into remove-log-from-main
parents
a0326be0
439bcbf5
No related branches found
Branches containing commit
No related tags found
1 merge request
!56
Remove log from main
Pipeline
#177690
passed with stage
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-27
29 additions, 27 deletions
.gitlab-ci.yml
with
29 additions
and
27 deletions
.gitlab-ci.yml
+
29
−
27
View file @
3a21ed6c
image
:
node:16
stages
:
-
setup
#
- setup
-
test
variables
:
npm_config_cache
:
"
$CI_PROJECT_DIR/.npm"
#
variables:
#
npm_config_cache: "$CI_PROJECT_DIR/.npm"
# Define a hidden job to be used with extends
# Better than default to avoid activating cache for all jobs
.dependencies_cache
:
cache
:
key
:
files
:
-
package-lock.json
paths
:
-
.npm
policy
:
pull
#
.dependencies_cache:
#
cache:
#
key:
#
files:
#
- package-lock.json
#
paths:
#
- .npm
#
policy: pull
setup
:
stage
:
setup
script
:
-
npm ci
extends
:
.dependencies_cache
cache
:
policy
:
pull-push
artifacts
:
expire_in
:
3 days
#delete cache after 3 days to conserve space
paths
:
-
node_modules
#
setup:
#
stage: setup
#
script:
#
- npm ci
#
extends: .dependencies_cache
#
cache:
#
policy: pull-push
#
artifacts:
#
expire_in: 3 days #delete cache after 3 days to conserve space
#
paths:
#
- node_modules
lint_
test
:
test
:
stage
:
test
script
:
-
npm ci
-
npm run lint
unit_test
:
stage
:
test
script
:
-
npm run test:unit
#unit_test:
# stage: test
# script:
# - npm run test:unit
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