Skip to content

Bump github.com/cometbft/cometbft-db from 0.7.0 to 0.8.0 #472

Bump github.com/cometbft/cometbft-db from 0.7.0 to 0.8.0

Bump github.com/cometbft/cometbft-db from 0.7.0 to 0.8.0 #472

Workflow file for this run

name: Tests and Code coverage
on:
pull_request:
push:
branches:
- development
- master
jobs:
run:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Generate coverage report
run: |
make test-coverage
filepaths+=" $(find ./ -type f -name '*.go' -exec grep -l 'DO NOT COVER' {} \;)"
filepaths+=" $(find ./ -type f -name '*.pb.go')"
filepaths+=" $(find ./ -type f -name '*.pb.gw.go')"
for filepath in ${filepaths}; do
filepath=$(echo ${filepath} | sed 's/^./github.com\/sentinel-official\/hub/g')
echo "Excluding file ${filepath} from coverage report..."
sed -i "/$(echo ${filepath} | sed 's/\//\\\//g')/d" ./coverage.txt
done
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt