File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ # ---------------------------------------------------------------
2+ # Workflow File : test-PR.yml
3+ # File Authors : Aoran Zeng <[email protected] >4+ # Contributors : Nul None <[email protected] >5+ # |
6+ # Created On : <2025-06-19>
7+ # Last Modified : <2025-06-19>
8+ #
9+ # Test PR
10+ # ---------------------------------------------------------------
11+
12+ name : 测试PR
13+
14+ on :
15+ pull_request :
16+ types : [opened,
17+ synchronize, # 后续提交
18+ ready_for_review, # draft PR 转为正式 PR
19+ review_requested,
20+ reopened]
21+ paths :
22+ - " src/**"
23+ - " lib/**"
24+
25+ jobs :
26+ test-on-ubuntu :
27+ name : 在Ubuntu上测试
28+ runs-on : ubuntu-latest
29+ if : github.event.pull_request.base.ref == 'dev'
30+
31+ steps :
32+ - name : 检出代码
33+ uses : actions/checkout@v4
34+
35+ - name : 测试构建情况
36+ run : |
37+ make
38+
39+ - name : 测试test情况
40+ run : |
41+ make test
42+
43+ test-on-windows :
44+ name : 在Windows上测试
45+ runs-on : ubuntu-latest
46+ if : github.event.pull_request.base.ref == 'dev'
47+
48+ steps :
49+ - name : 检出代码
50+ uses : actions/checkout@v4
51+
52+ - name : 安装依赖
53+ run : |
54+ choco install just
55+
56+ - name : 测试构建情况
57+ run : |
58+ just
59+
60+ - name : 测试test情况
61+ run : |
62+ just test
You can’t perform that action at this time.
0 commit comments