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
Commits
7d089db7
Commit
7d089db7
authored
2 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
try and try again
parent
10eddbfd
No related branches found
Branches containing commit
No related tags found
1 merge request
!31
Cicd
Pipeline
#176614
failed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-3
8 additions, 3 deletions
.gitlab-ci.yml
with
8 additions
and
3 deletions
.gitlab-ci.yml
+
8
−
3
View file @
7d089db7
image
:
node:16-alpine
image
:
node:16-alpine
stages
:
stages
:
-
build
-
build
-
test
-
test
# - deploy
# - deploy
install
_dependencies
:
install
:
stage
:
build
stage
:
.pre
cache
:
cache
:
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths
:
paths
:
-
node_modules/
-
node_modules/
# before_script: #Runs before script; in case we need .envs later
# - cp .env.gitlab-testing .env
script
:
script
:
-
npm ci
-
npm ci
only
:
only
:
...
@@ -18,6 +21,8 @@ install_dependencies:
...
@@ -18,6 +21,8 @@ install_dependencies:
build
:
build
:
stage
:
build
stage
:
build
needs
:
-job
:
install
cache
:
cache
:
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
key
:
$CI_COMMIT_REF_SLUG-$CI_PROJECT_DIR
paths
:
paths
:
...
@@ -32,5 +37,5 @@ build:
...
@@ -32,5 +37,5 @@ build:
run_tests
:
run_tests
:
stage
:
test
stage
:
test
needs
:
needs
:
-
build
-
job
:
install
script
:
npm run test:unit
script
:
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