Skip to content

Commit

Permalink
Add nativeTest under GraalVM Native Image for all E2E related unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
linghengqian committed Aug 21, 2024
1 parent 2a48c6a commit a648c18
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ jobs:
cache: 'maven'
native-image-job-reports: 'true'
- name: Run nativeTest with GraalVM CE for ${{ matrix.java-version }}
run: ./mvnw -PnativeTestInShardingSphere -e clean test
run: |
./mvnw -B clean install -am -pl test/e2e/operation/transaction -Pit.env.docker -DskipTests
./mvnw -PnativeTestInShardingSphere -e clean test -Dtransaction.it.env.type=docker -Dtransaction.it.docker.mysql.version=mysql:5.7
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@
<configuration>
<includes>
<include>org.apache.shardingsphere.test.natived.**</include>
<include>org.apache.shardingsphere.test.e2e.**</include>
</includes>
</configuration>
</plugin>
Expand Down Expand Up @@ -1061,6 +1062,7 @@
<configuration>
<includes>
<include>org.apache.shardingsphere.test.natived.**</include>
<include>org.apache.shardingsphere.test.e2e.**</include>
</includes>
</configuration>
</plugin>
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/operation/pipeline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions test/e2e/operation/showprocesslist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,14 @@
<artifactId>awaitility</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>
10 changes: 10 additions & 0 deletions test/e2e/operation/transaction/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,14 @@
<artifactId>awaitility</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>

0 comments on commit a648c18

Please sign in to comment.