ci: skip archive, upload directly (#1586)

This commit is contained in:
Leo Q 2024-07-02 00:05:47 +08:00 committed by GitHub
parent d936817de9
commit 1ce1e529ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,21 +36,9 @@ jobs:
# in the next step as well as the next job. # in the next step as well as the next job.
- name: Test - name: Test
run: go test -cover -coverprofile=coverage.txt ./... run: go test -cover -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@v4
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with: with:
name: code-coverage token: ${{ secrets.CODECOV_TOKEN }}
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 }}
commit_lint: commit_lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest