[ISSUE #8643] Add an integration testing pipeline to current CI workflow (#8644)

* Add a it pipeline to workflows

* Trigger

* Rename it job

* Remove branch trigger

* Remove the step of uploading report
This commit is contained in:
小陈
2024-09-05 10:13:02 +08:00
committed by GitHub
parent 5d43e7d111
commit 3368c06e6b
5 changed files with 59 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Run Integration Tests
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]
jobs:
it-test:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
jdk: [8]
steps:
- name: Cache Maven Repos
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.jdk }}
distribution: "adopt"
cache: "maven"
- name: Run integration tests with Maven
run: mvn clean verify -Pit-test -Pskip-unit-tests
+15
View File
@@ -526,6 +526,21 @@
<sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
</properties>
</profile>
<profile>
<id>skip-unit-tests</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<skipTests>true</skipTests>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencyManagement>
@@ -30,6 +30,7 @@ import org.apache.rocketmq.test.util.MQRandomUtils;
import org.assertj.core.util.Lists;
import org.junit.Before;
import org.junit.Test;
import org.junit.Ignore;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
@@ -53,6 +54,7 @@ public class NotificationIT extends BasePop {
}
@Test
@Ignore
public void testNotification() throws Exception {
long pollTime = 500;
CompletableFuture<Boolean> future1 = client.notification(brokerAddr, topic, group, messageQueue.getQueueId(), pollTime, System.currentTimeMillis(), 5000);
@@ -30,6 +30,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runners.MethodSorters;
import static org.awaitility.Awaitility.await;
@@ -87,6 +88,7 @@ public class ClusterGrpcIT extends GrpcBaseIT {
}
@Test
@Ignore
public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
super.testSimpleConsumerSendAndRecvDelayMessage();
}
@@ -26,6 +26,7 @@ import org.junit.After;
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runners.MethodSorters;
@FixMethodOrder(value = MethodSorters.NAME_ASCENDING)
@@ -75,6 +76,7 @@ public class LocalGrpcIT extends GrpcBaseIT {
}
@Test
@Ignore
public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
super.testSimpleConsumerSendAndRecvDelayMessage();
}