Skip to content

Commit f6898ae

Browse files
committed
OPHYK-204 run sercive-provider tests on CI
1 parent e8970d3 commit f6898ae

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

infra/src/cdk-app-util.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,20 @@ class ContinousDeploymentPipelineStack extends cdk.Stack {
148148
),
149149
})
150150
);
151+
testStage.addAction(
152+
new codepipeline_actions.CodeBuildAction({
153+
actionName: "TestServiceProvider",
154+
input: sourceOutput,
155+
project: makeTestProject(
156+
this,
157+
env,
158+
tag,
159+
"TestServiceProvider",
160+
["scripts/ci/run-tests-service-provider.sh"],
161+
"corretto21"
162+
),
163+
})
164+
);
151165
}
152166

153167
const deployProject = new codebuild.PipelineProject(
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -o errexit -o nounset -o pipefail
3+
readonly repo="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../.. && pwd )"
4+
5+
function main {
6+
cd "$repo/service-provider"
7+
./mvnw clean test
8+
}
9+
10+
main "$@"

0 commit comments

Comments
 (0)