Skip to content

Commit

Permalink
test: add codecov support
Browse files Browse the repository at this point in the history
  • Loading branch information
yankeguo committed Sep 27, 2024
1 parent 692d45f commit da86056
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -coverprofile=coverage.txt -v ./...
env:
ZHIPUAI_API_KEY: ${{secrets.ZHIPUAI_API_KEY}}
TEST_KNOWLEDGE_ID: ${{secrets.TEST_KNOWLEDGE_ID}}

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit da86056

Please sign in to comment.