Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
952a627e
Commit
952a627e
authored
1 year ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
try making shared/ tests runable by service
parent
5cde2a57
No related branches found
No related tags found
2 merge requests
!1706
merge 2.8.4 to main
,
!1614
PIPELINE TESTING: Playing with shared/workspaces testing
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+6
-3
6 additions, 3 deletions
.gitlab-ci.yml
ci/unit-test.template.yml
+1
-0
1 addition, 0 deletions
ci/unit-test.template.yml
with
7 additions
and
3 deletions
.gitlab-ci.yml
+
6
−
3
View file @
952a627e
...
...
@@ -224,7 +224,8 @@ unit test workflow:
variables
:
SERVICE_NAME
:
"
workflow"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/test/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
TEST_PREFIX2
:
"
shared/workspaces/test/"
extends
:
.unit-test
unit test capability
:
...
...
@@ -233,7 +234,8 @@ unit test capability:
variables
:
SERVICE_NAME
:
"
capability"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/test/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
TEST_PREFIX2
:
"
shared/workspaces/test/"
extends
:
.unit-test
unit test notification
:
...
...
@@ -242,7 +244,8 @@ unit test notification:
variables
:
SERVICE_NAME
:
"
notification"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/test/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
TEST_PREFIX2
:
"
shared/workspaces/test/"
extends
:
.unit-test
...
...
This diff is collapsed.
Click to expand it.
ci/unit-test.template.yml
+
1
−
0
View file @
952a627e
...
...
@@ -26,6 +26,7 @@
IMAGE_TAG
:
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/^end-of-sprint-[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+\.[0.9]+-rc[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
...
...
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