Skip to content

Commit

Permalink
Merge pull request #264 from mdelapenya/codecov
Browse files Browse the repository at this point in the history
Add a GH action stage to send coverage reports to Codecov
  • Loading branch information
Gianluca Arbezzano authored Feb 24, 2021
2 parents 585dc60 + be51600 commit 5a2f34d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@ jobs:
# we can't put Windows Server in "Linux Mode" in Github actions
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: gotestsum --format short-verbose ./...
run: gotestsum --format short-verbose -- -coverprofile=cover.txt ./...

# only report code coverage on linux
- name: Upload coverage report
if: ${{ matrix.platform == 'ubuntu-latest' }}
uses: codecov/codecov-action@v1
with:
file: ./cover.txt
name: testcontainers-go-${{ matrix.go-version }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ site/
src/mkdocs-codeinclude-plugin
src/pip-delete-this-directory.txt
.idea/

cover.txt

0 comments on commit 5a2f34d

Please sign in to comment.