Skip to content

Commit 7964926

Browse files
committed
添加 PR 执行单元测试
1 parent 375ce52 commit 7964926

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/pull-request.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Maven verify
2+
on:
3+
pull_request:
4+
types: [ opened, reopened, edited ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '8'
14+
distribution: 'adopt'
15+
- name: Run the Maven verify phase
16+
run: mvn --batch-mode --update-snapshots -P dev verify

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
publish:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- name: Set up Maven Central Repository
1111
uses: actions/setup-java@v2
1212
with:

0 commit comments

Comments
 (0)