forked from dapr/dapr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate presubmit coverage report using CodeCov (dapr#2072)
* Add Codecov GitHub action. * Only run Codecov when we run tests. * Ignore more & cov only on linux-amd64 & add badge. * Move CodeCov badge to same location as other badges. * Formatting. Co-authored-by: Young Bu Park <[email protected]>
- Loading branch information
1 parent
a24e66e
commit c1b10b3
Showing
4 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ignore: | ||
- "**/zz_generated*.go" # Ignore generated files. | ||
- "**/pkg/apis/**" # CRD related files including generated ones. | ||
- "**/pkg/proto/**" # GRPC Protobuf client for dapr | ||
- "**/pkg/testing/**" # testing mock |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,13 @@ jobs: | |
if: matrix.target_arch != 'arm' && matrix.target_os != 'windows' | ||
run: make lint | ||
- name: Run make test | ||
env: | ||
COVERAGE_OPTS: "-coverprofile=coverage.txt -covermode=atomic" | ||
if: matrix.target_arch != 'arm' | ||
run: make test | ||
- name: Codecov | ||
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' | ||
uses: codecov/codecov-action@v1 | ||
- name: Run make release to build and archive binaries | ||
run: | | ||
mkdir -p ${{ env.ARCHIVE_OUTDIR }} | ||
|
@@ -161,7 +166,7 @@ jobs: | |
tar xzvf $tgzfile -C $RELEASE_DIR | ||
done | ||
done | ||
- name: publish binaries to github | ||
if: startswith(github.ref, 'refs/tags/v') | ||
run: | | ||
|
@@ -259,5 +264,5 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "dapr-bot" | ||
git add --all | ||
git commit -m "Release - $daprVersion" | ||
git commit -m "Release - $daprVersion" | ||
git push |
This file contains 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
This file contains 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