chore: rename active_duration and status_change_delay parameter to st… #1180
This file contains hidden or 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: Tests and Code Coverage | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - development | |
| - master | |
| jobs: | |
| go: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v5 | |
| - name: Set Up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.25' | |
| - name: Generate Coverage Report | |
| run: | | |
| make test-coverage | |
| files="" | |
| files+=" $(find ./ -type f -name '*.go' -exec grep -l 'DO NOT COVER' {} \;)" | |
| files+=" $(find ./ -type f -name '*.pb.go')" | |
| files+=" $(find ./ -type f -name '*.pb.gw.go')" | |
| files+=" $(find ./ -type f -path '*/client/cli/*')" | |
| files+=" $(find ./ -type f -path '*/expected/*')" | |
| files+=" $(find ./ -type f -path '*/services/*')" | |
| for f in ${files}; do | |
| f=$(echo "${f}" | sed 's@^[email protected]/sentinel-official/sentinelhub/v[0-9]*@g') | |
| echo "Excluding file ${f} from coverage report..." | |
| sed -i "/$(echo "${f}" | sed 's@/@\\/@g')/d" ./coverage.txt | |
| done | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 #v5.5.1 | |
| with: | |
| file: ./coverage.txt | |
| token: ${{ secrets.CODECOV_TOKEN }} |