Skip to content

Commit c6f4f5c

Browse files
authored
[framework] 添加 java 框架的 github action 文件 (#33)
1 parent 39b8300 commit c6f4f5c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Framework Java Compile
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '[0-9]+.[0-9]+.x' # 匹配 x.x.x 格式且最后一位为 x(如 1.2.x、22.1.x)
8+
paths:
9+
- 'framework/**'
10+
- '!framework/python/**'
11+
- '!framework/elsa/**'
12+
- 'examples/**'
13+
pull_request:
14+
branches:
15+
- 'main'
16+
- '[0-9]+.[0-9]+.x'
17+
paths:
18+
- 'framework/**'
19+
- '!framework/python/**'
20+
- '!framework/elsa/**'
21+
- 'examples/**'
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: '17'
32+
distribution: 'temurin'
33+
cache: maven
34+
- name: Build with Maven
35+
run: mvn clean install

0 commit comments

Comments
 (0)