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
d1086735
Commit
d1086735
authored
2 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
8238811b
No related branches found
Branches containing commit
No related tags found
1 merge request
!31
Cicd
Pipeline
#176642
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+13
-33
13 additions, 33 deletions
.gitlab-ci.yml
with
13 additions
and
33 deletions
.gitlab-ci.yml
+
13
−
33
View file @
d1086735
image
:
node:16-alpine
#
# https://gitlab.com/gitlab-org/gitlab/-/tree/master/lib/gitlab/ci/templates/Nodejs.gitlab-ci.yml
#
image
:
node:latest
stages
:
-
build
-
test
# - deploy
# Cache modules in between jobs
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
.npm/
install
:
stage
:
.pre
cache
:
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths
:
-
node_modules/
# before_script: #Runs before script; in case we need .envs later
# - cp .env.gitlab-testing .env
script
:
-
npm ci
only
:
changes
:
-
package-lock.json
before_script
:
-
npm ci --cache .npm --prefer-offline
build
:
stage
:
build
cache
:
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths
:
-
node_modules/
policy
:
pull
test_async
:
script
:
-
npm run build
artifacts
:
paths
:
-
build
run_tests
:
stage
:
test
script
:
npm run test:unit
\ No newline at end of file
-
npm run test:unit
\ No newline at end of file
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