Skip to content

Commit 368abe2

Browse files
szjason72szjason72
authored andcommitted
feat: 添加简化CI/CD测试工作流
1 parent 62e8122 commit 368abe2

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test-simple.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Simple Test
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Test connection
17+
run: |
18+
echo "✅ CI/CD 连接测试成功"
19+
echo "当前分支: ${{ github.ref }}"
20+
echo "提交信息: ${{ github.event.head_commit.message }}"
21+
22+
- name: List files
23+
run: |
24+
echo "📁 项目文件结构:"
25+
find . -type f -name "*.go" | head -10
26+
echo "..."
27+
28+
- name: Test success
29+
run: |
30+
echo "🎉 基础CI/CD测试通过!"
31+
echo "时间: $(date)"
32+
echo "运行器: ${{ runner.os }}"

0 commit comments

Comments
 (0)