-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: spacewander <[email protected]>
- Loading branch information
1 parent
aabf4a7
commit 8c60c80
Showing
12 changed files
with
268 additions
and
22 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
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 |
---|---|---|
|
@@ -18,7 +18,6 @@ concurrency: | |
|
||
env: | ||
IN_CI: true | ||
COVERAGE_OPTION: "-covermode=atomic -coverprofile=coverage.out" | ||
|
||
jobs: | ||
unit-test: | ||
|
@@ -38,8 +37,8 @@ jobs: | |
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: false # let CI build pass if Codecov runs into an error during upload | ||
file: ./coverage.out | ||
flags: unittests | ||
file: ./cover.out | ||
flags: unit-test | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
|
||
|
@@ -70,6 +69,17 @@ jobs: | |
# upload artifact can be found in https://github.com/mosn/htnn/actions/runs/$id | ||
name: ci-logs | ||
path: ./test-envoy | ||
- name: Generate coverage | ||
run: | | ||
go tool covdata textfmt -i=/tmp/htnn_coverage -o plugins/tests/integration/cover.out -v 2 | ||
- name: Upload to codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: false # let CI build pass if Codecov runs into an error during upload | ||
file: plugins/tests/integration/cover.out | ||
flags: plugins-integration-test | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true | ||
|
||
controller-test: | ||
timeout-minutes: 10 | ||
|
@@ -97,3 +107,11 @@ jobs: | |
- name: Test | ||
run: make test | ||
- name: Upload to codecov | ||
uses: codecov/[email protected] | ||
with: | ||
fail_ci_if_error: false # let CI build pass if Codecov runs into an error during upload | ||
file: ./controller/cover.out | ||
flags: controller-test | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: true |
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
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
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
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
Oops, something went wrong.