Skip to content

Commit fde35ae

Browse files
authored
Merge pull request #14 from oracle/topic_jjyoti_integ_test_r2
Adding workflow to build and run Integration Tests
2 parents 7c0f952 + b2a13b8 commit fde35ae

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/integrationTest.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup Java 17
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 17
20+
distribution: 'temurin'
21+
java-package: 'jdk'
22+
cache: 'maven'
23+
- name: Run Maven Build and Test
24+
run: |
25+
mvn clean \
26+
-Pspring-cloud-oci-ci-it \
27+
-DuserId=${{ secrets.userId }} \
28+
-DtenantId=${{ secrets.tenantId }} \
29+
-Dfingerprint=${{ secrets.fingerprint }} \
30+
-Dregion=${{ env.region }} \
31+
-DprivateKeyContent=${{ secrets.privateKeyContent }} \
32+
-Dit.notification=${{ env.it_notification }} \
33+
-DtopicName=${{ env.topicName }} \
34+
-DcompartmentId=${{ secrets.compartmentId }} \
35+
-Dit.logging=${{ env.it_logging }} \
36+
-DlogId=${{ env.logId }} \
37+
-Dit.storage=${{ env.it_storage }} \
38+
-DbucketName=${{ env.bucketName }} \
39+
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)