Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

like for test target, instead of hardcoding make dependencies, check for make coverage #51

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ jobs:
with:
go-version: '1.22'
check-latest: true
- name: Optional init
run: make dependencies || true # Used in fortio for instance to prep for go tests
ccoVeille marked this conversation as resolved.
Show resolved Hide resolved
- name: Run test coverage
run: go test -coverprofile=coverage.out ./...
run: |
if make -n coverage &>/dev/null; then
echo "Running coverage through make"
make coverage
else
echo "No Makefile coverage target, using default behavior"
go test -coverprofile=coverage.out ./...
ccoVeille marked this conversation as resolved.
Show resolved Hide resolved
fi
- uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # pin@v3
with:
files: coverage.out
Loading