Skip to content

Commit b52507b

Browse files
committed
Adding workflow for build and integration tests
1 parent 7c0f952 commit b52507b

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/integrationTest.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will build a Java project with Maven
2+
3+
name: Run the Integration Tests for Spring Cloud OCI
4+
5+
on:
6+
push:
7+
branches: [ main, topic_jjyoti_* ]
8+
pull_request:
9+
branches: [ $default-branch ]
10+
workflow_dispatch:
11+
inputs:
12+
releaseVersion:
13+
description: "Define the release version"
14+
required: true
15+
default: ""
16+
developmentVersion:
17+
description: "Define the snapshot version"
18+
required: true
19+
default: ""
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-22.04
24+
steps:
25+
- uses: actions/checkout@v2
26+
- name: Setup Java 17
27+
uses: actions/setup-java@v1
28+
with:
29+
java-version: 17
30+
distribution: 'temurin'
31+
java-package: 'jdk'
32+
cache: 'maven'
33+
- name: Run Maven Build and Test
34+
run: |
35+
mvn clean \
36+
-Pspring-cloud-oci-ci-it \
37+
-DuserId=${{ secrets.userId }} \
38+
-DtenantId=${{ secrets.tenantId }} \
39+
-Dfingerprint=${{ secrets.fingerprint }} \
40+
-Dregion=${{ env.region }} \
41+
-DprivateKeyContent=${{ secrets.privateKeyContent }} \
42+
-Dit.notification=${{ env.it_notification }} \
43+
-DtopicName=${{ env.topicName }} \
44+
-DcompartmentId=${{ secrets.compartmentId }} \
45+
-Dit.logging=${{ env.it_logging }} \
46+
-DlogId=${{ env.logId }} \
47+
-Dit.storage=${{ env.it_storage }} \
48+
-DbucketName=${{ env.bucketName }} \
49+
install

spring-cloud-oci-samples/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
4646
<profiles>
4747
<profile>
4848
<id>spring-cloud-oci-ci-it</id>
49+
<build>
50+
<plugins>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-surefire-plugin</artifactId>
54+
<version>3.1.2</version>
55+
</plugin>
56+
</plugins>
57+
</build>
4958
</profile>
5059
</profiles>
5160
</project>

0 commit comments

Comments
 (0)