You've already forked testing-go-code-with-postgres
mirror of
https://github.com/xorcare/testing-go-code-with-postgres.git
synced 2025-06-30 23:23:40 +02:00
Add coverage report by Codecov
This is needed to display coverage, and as an example of setting up coverage counts. Also, added badges to make the repositories look prettier.
This commit is contained in:
5
.github/workflows/go.yml
vendored
5
.github/workflows/go.yml
vendored
@ -34,6 +34,11 @@ jobs:
|
||||
- name: Teardown test environment
|
||||
run: make test-env-up
|
||||
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
env:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
golangci:
|
||||
name: lint
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -1,5 +1,9 @@
|
||||
# Example of testing Go code with Postgres
|
||||
|
||||
[](https://github.com/xorcare/testing-go-code-with-postgres/actions/workflows/go.yml)
|
||||
[](https://codecov.io/github/xorcare/testing-go-code-with-postgres/tree/main)
|
||||
[](https://goreportcard.com/report/github.com/xorcare/testing-go-code-with-postgres)
|
||||
|
||||
The example suggests a solution to the problem of cleaning the database after
|
||||
running tests and the problem of running tests in parallel. It also shows how
|
||||
to organize integration testing of Go code with Postgres.
|
||||
|
Reference in New Issue
Block a user