Skip to content

Commit 2aed8df

Browse files
authored
Init nativeTest by GraalVM CE in CI (#560)
1 parent 08e2f0a commit 2aed8df

File tree

36 files changed

+842
-61
lines changed

36 files changed

+842
-61
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ env:
2424
MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true
2525

2626
jobs:
27+
# TODO
28+
test-graalvm-ce-ci:
29+
name: NativeTest CI - GraalVM CE ${{ matrix.java-version }} on ${{ matrix.os }} (This CI failure is reasonable)
30+
runs-on: ${{ matrix.os }}
31+
timeout-minutes: 90
32+
continue-on-error: true
33+
strategy:
34+
matrix:
35+
os: [ ubuntu-latest ]
36+
java-version: [ '17.0.8' ]
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: graalvm/setup-graalvm@v1
40+
with:
41+
java-version: ${{ matrix.java-version }}
42+
distribution: 'graalvm-community'
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
cache: 'maven'
45+
- name: Build Spring Boot Starter 3 test with Maven
46+
run: |
47+
./mvnw -T1C -B -PgenerateMetadata -DskipNativeTests clean test
48+
# ./mvnw -am -pl dynamic-datasource-spring-boot3-starter -PnativeTestInSpringBoot clean test
2749
test-maximum-jdk-ci:
2850
name: Test CI - JDK ${{ matrix.java-version }} on ${{ matrix.os }}
2951
runs-on: ${{ matrix.os }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture;
16+
package com.baomidou.dynamic.datasource.fixture.v1;
1717

1818
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
1919
import com.baomidou.dynamic.datasource.creator.DataSourceProperty;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture;
16+
package com.baomidou.dynamic.datasource.fixture.v1;
1717

1818
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
1919
import com.baomidou.dynamic.datasource.creator.DataSourceProperty;
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture;
16+
package com.baomidou.dynamic.datasource.fixture.v1;
1717

1818
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
1919
import com.baomidou.dynamic.datasource.creator.DataSourceProperty;
2020
import com.baomidou.dynamic.datasource.creator.DefaultDataSourceCreator;
21-
import com.baomidou.dynamic.datasource.fixture.service.nest.SchoolService;
22-
import com.baomidou.dynamic.datasource.fixture.service.nest.Student;
23-
import com.baomidou.dynamic.datasource.fixture.service.nest.StudentService;
24-
import com.baomidou.dynamic.datasource.fixture.service.nest.TeacherService;
21+
import com.baomidou.dynamic.datasource.fixture.v1.service.nest.SchoolService;
22+
import com.baomidou.dynamic.datasource.fixture.v1.service.nest.Student;
23+
import com.baomidou.dynamic.datasource.fixture.v1.service.nest.StudentService;
24+
import com.baomidou.dynamic.datasource.fixture.v1.service.nest.TeacherService;
2525
import org.junit.Test;
2626
import org.junit.runner.RunWith;
2727
import org.springframework.beans.factory.annotation.Autowired;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture;
16+
package com.baomidou.dynamic.datasource.fixture.v1;
1717

1818
import com.baomidou.dynamic.datasource.DynamicRoutingDataSource;
1919
import com.baomidou.dynamic.datasource.creator.DataSourceProperty;
2020
import com.baomidou.dynamic.datasource.creator.DefaultDataSourceCreator;
21-
import com.baomidou.dynamic.datasource.fixture.service.spel.CustomResultHandler;
22-
import com.baomidou.dynamic.datasource.fixture.service.spel.User;
23-
import com.baomidou.dynamic.datasource.fixture.service.spel.UserService;
21+
import com.baomidou.dynamic.datasource.fixture.v1.service.spel.CustomResultHandler;
22+
import com.baomidou.dynamic.datasource.fixture.v1.service.spel.User;
23+
import com.baomidou.dynamic.datasource.fixture.v1.service.spel.UserService;
2424
import org.junit.Before;
2525
import org.junit.Test;
2626
import org.junit.runner.RunWith;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture.controller;
16+
package com.baomidou.dynamic.datasource.fixture.v1.controller;
1717

18-
import com.baomidou.dynamic.datasource.fixture.service.spel.User;
19-
import com.baomidou.dynamic.datasource.fixture.service.spel.UserService;
18+
import com.baomidou.dynamic.datasource.fixture.v1.service.spel.User;
19+
import com.baomidou.dynamic.datasource.fixture.v1.service.spel.UserService;
2020
import org.springframework.beans.factory.annotation.Autowired;
2121
import org.springframework.web.bind.annotation.GetMapping;
2222
import org.springframework.web.bind.annotation.RequestMapping;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture.service.nest;
16+
package com.baomidou.dynamic.datasource.fixture.v1.service.nest;
1717

1818
import org.springframework.stereotype.Service;
1919
import org.springframework.transaction.annotation.Transactional;
2020

2121
@Service
2222
public class SchoolService {
23-
2423
private final TeacherService teacherService;
2524
private final StudentService studentService;
2625

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture.service.nest;
16+
package com.baomidou.dynamic.datasource.fixture.v1.service.nest;
1717

1818
import lombok.AllArgsConstructor;
1919
import lombok.Data;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture.service.nest;
16+
package com.baomidou.dynamic.datasource.fixture.v1.service.nest;
1717

1818
import com.baomidou.dynamic.datasource.annotation.DS;
1919
import org.springframework.stereotype.Service;
@@ -32,7 +32,6 @@
3232
@Service
3333
@DS("student")
3434
public class StudentService {
35-
3635
private final DataSource dataSource;
3736

3837
public StudentService(DataSource dataSource) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.baomidou.dynamic.datasource.fixture.service.nest;
16+
package com.baomidou.dynamic.datasource.fixture.v1.service.nest;
1717

1818
import lombok.AllArgsConstructor;
1919
import lombok.Data;

0 commit comments

Comments
 (0)