Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-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
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
Merge requests
!56
Remove log from main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Remove log from main
remove-log-from-main
into
main
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Erik Borgeteien Hansen
requested to merge
remove-log-from-main
into
main
3 years ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
3a21ed6c
Prev
Next
Show latest version
1 file
+
29
−
27
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3a21ed6c
Merge branch 'main' into remove-log-from-main
· 3a21ed6c
Erik Borgeteien Hansen
authored
3 years ago
.gitlab-ci.yml
+
29
−
27
Options
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
Loading