Skip to content

Commit 7f22747

Browse files
author
“tomsun28”
committed
add github action
1 parent 5cabba6 commit 7f22747

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Before submitting your PR, there are a few things you can do to make sure it goe
88
- [ ] Ensure the tests pass (Run `mvn clean test` from the repository root)
99
- [ ] Appropriate docs were updated (if necessary)
1010

11-
Fixes #<issue_number_goes_here> 🦕
11+
Fixes #<issue_number_goes_here>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
enabled: true
2+
always_check_pr_title: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Test
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- 'action*'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 8
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: '8'
19+
distribution: 'temurin'
20+
cache: maven
21+
- name: Build with Maven
22+
run: mvn -B package

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<packaging>jar</packaging>
1212

13-
<name>ZhiPu sdk for GLM open api</name>
14-
<description>Java SDK for zhipu Big Model API</description>
13+
<name>Zhipu sdk for GLM open api</name>
14+
<description>Java SDK for Zhipu Big Model API</description>
1515
<url>https://open.bigmodel.cn/</url>
1616
<licenses>
1717
<license>
@@ -150,6 +150,12 @@
150150
<version>2.9.0</version>
151151
</dependency>
152152

153+
<dependency>
154+
<groupId>org.apache.tika</groupId>
155+
<artifactId>tika-core</artifactId>
156+
<version>2.9.0</version>
157+
</dependency>
158+
153159
<!-- JUnit Jupiter API -->
154160
<dependency>
155161
<groupId>org.junit.jupiter</groupId>
@@ -210,12 +216,6 @@
210216
<scope>test</scope>
211217
</dependency>
212218

213-
<dependency>
214-
<groupId>org.apache.tika</groupId>
215-
<artifactId>tika-core</artifactId>
216-
<version>2.9.0</version>
217-
</dependency>
218-
219219
</dependencies>
220220
<profiles>
221221
<profile>

0 commit comments

Comments
 (0)