ci: add Codecov coverage reporting#23
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
awesome-go 掲載基準のうち「テストカバレッジ >= 80% かつカバレッジレポートのリンク提示」要件を満たすため、Codecov によるカバレッジレポートを整備する。
現状
変更内容
.github/workflows/ci.ymlgo testに-coverprofile=coverage.outを追加codecov/codecov-action@v5、CODECOV_TOKENを使用)README.md: codecov バッジを既存バッジ群に追加.gitignore:coverage.outを無視対象に追加このPRマージ後、バッジを有効化するため以下の操作が必要です。完了するまでバッジは "unknown" 表示になります。
atani/github-discover)を追加・有効化CODECOV_TOKENとして登録することを推奨Test plan
go build ./...passgo vet ./...passgo test ./...pass(全パッケージ green)go test -coverprofile=coverage.out ./...で total 87.5% を確認