mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-05 02:30:26 +08:00
.claude/ 目录在 .gitignore 中被忽略,这些用户特定配置文件 不应该存在于仓库中,也不需要被 CI 检查。 Fixes #53 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
35 lines
732 B
YAML
35 lines
732 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, rc/*]
|
|
pull_request:
|
|
branches: [master, rc/*]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.21'
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd codeagent-wrapper
|
|
go test -v -cover -coverprofile=coverage.out ./...
|
|
|
|
- name: Check coverage
|
|
run: |
|
|
cd codeagent-wrapper
|
|
go tool cover -func=coverage.out | grep total | awk '{print $3}'
|
|
|
|
- name: Upload coverage
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
file: codeagent-wrapper/coverage.out
|
|
continue-on-error: true
|