Skip to content

Commit

Permalink
feat: add codecov integration (#23)
Browse files Browse the repository at this point in the history
* feat: add codecov integration

* fix: syntax issues
  • Loading branch information
avtakkar authored Mar 21, 2024
1 parent 27cf1da commit 24e137d
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 77 deletions.
20 changes: 20 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# For more configuration details:
# https://docs.codecov.io/docs/codecov-yaml

# Check if this file is valid by running in bash:
# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate

coverage:
status:
project:
default:
target: 80%
patch:
default:
target: 80%

ignore:
- tests/**/*

comment:
layout: diff, files
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: bin/coverage/coverage.html
path: bin/coverage/coverage.html

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Azure/peerd
72 changes: 0 additions & 72 deletions .github/workflows/scorecard.yml

This file was deleted.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Release CI]][release-ci]
[![CodeQL]][code-ql]
[![Go Report Card]][go-report-card]
[![Scorecard supply-chain security]][scorecard-supply-chain-security]
[![codecov]][code-cov]

![cluster-ops]

Expand Down Expand Up @@ -51,7 +51,8 @@ Alternatively, it can also be deployed as DaemonSet pods using the [helm chart].
* containerd as the container runtime.
With containerd, `peerd` leverages the [hosts configuration][containerd hosts] to act as a mirror for container images.
The [helm chart] deploys a DameonSet to the `peerd-ns` namespace, and mounts the containerd socket to the `peerd` containers.
The [helm chart] deploys a DameonSet to the `peerd-ns` namespace, and mounts the containerd socket to the `peerd`
containers.
The `peerd` container image is available at `ghcr.io/azure/acr/peerd`. To deploy, run the following.
Expand Down Expand Up @@ -287,5 +288,5 @@ integration with [Overlaybd].
[white paper]: https://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf
[design-doc]: ./docs/design.md
[cluster-ops]: ./assets/images//cluster-ops.gif
[Scorecard supply-chain security]: https://github.com/Azure/peerd/actions/workflows/scorecard.yml/badge.svg
[scorecard-supply-chain-security]: https://github.com/Azure/peerd/actions/workflows/scorecard.yml
[codecov]: https://codecov.io/gh/Azure/peerd/branch/main/graph/badge.svg
[code-cov]: https://codecov.io/gh/Azure/peerd

0 comments on commit 24e137d

Please sign in to comment.