Skip to content

Commit

Permalink
ci: skip archive, upload directly (songquanpeng#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Jul 1, 2024
1 parent d936817 commit 1ce1e52
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,9 @@ jobs:
# in the next step as well as the next job.
- name: Test
run: go test -cover -coverprofile=coverage.txt ./...

- name: Archive code coverage results
uses: actions/upload-artifact@v4
- uses: codecov/codecov-action@v4
with:
name: code-coverage
path: coverage.txt # Make sure to use the same file name you chose for the "-coverprofile" in the "Test" step

code_coverage:
name: "Code coverage report"
runs-on: ubuntu-latest
needs: unit_tests # Depends on the artifact uploaded by the "unit_tests" job
steps:
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}

commit_lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1ce1e52

Please sign in to comment.