Closed shyandsy closed 1 year ago
Found 1 possible coverage files: coverage.out
You need to upload the single .xml coverage file, nothing else.
@Boshen could you help to check the action file?
https://github.com/shyandsy/ShyGinErrors/blob/main/.github/workflows/test.yml
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout Code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Go report card
uses: creekorful/goreportcard-action@v1.0
- uses: actions/cache@v2
with:
path: |
${{ matrix.go-build }}
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }}
@shyandsy Take a look at the accepted files, https://docs.codecov.com/docs/supported-report-formats You need to generate one of these accepted files.
my github action shows upload coverage file success
btw, the links in above cannot be opened
the codecov web page shows processing status for the commit
and my badge in readme file shows 0% coverage