build(deps): bump codecov/codecov-action from 3 to 5 #812
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
cleanup-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: rokroskar/workflow-run-cleanup-action@master | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'" | |
Test: | |
# The custom image here contains pre-built libraries for leveldb and | |
# rocksdb, which are needed to build and test those modules. | |
# To update the container image, see docker.yml. | |
runs-on: ubuntu-latest | |
container: tendermintdev/docker-tm-db-testing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test & coverage report creation | |
run: | | |
CGO_ENABLED=1 go test ./... -mod=readonly -timeout 8m -race -coverprofile=coverage.txt -covermode=atomic -tags=memdb,goleveldb,cleveldb,boltdb,rocksdb,badgerdb -v | |
- uses: codecov/codecov-action@v5 | |
with: | |
file: ./coverage.txt | |
fail_ci_if_error: true |