This is an automated email from the ASF dual-hosted git repository.
zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 14d7f253ed Upload TO Integration test coverage to Codecov (#7211)
14d7f253ed is described below
commit 14d7f253edaa3fe4069eadbba9e513639d991721
Author: Eric Holguin <[email protected]>
AuthorDate: Mon Nov 21 15:06:04 2022 -0700
Upload TO Integration test coverage to Codecov (#7211)
* initial codecov setup
* updated codecov gha
* fix coverpkg arg
* fix path
* coverage file path
* name changes
* update flags
---
.github/actions/to-integration-tests/entrypoint.sh | 2 +-
.github/workflows/traffic-ops.yml | 15 +++++++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.github/actions/to-integration-tests/entrypoint.sh
b/.github/actions/to-integration-tests/entrypoint.sh
index 68a1a007bb..5728da8358 100755
--- a/.github/actions/to-integration-tests/entrypoint.sh
+++ b/.github/actions/to-integration-tests/entrypoint.sh
@@ -117,4 +117,4 @@ truncate --size=0 traffic.ops.log # Removes output from
previous API versions an
cd "../testing/api/v$INPUT_VERSION"
cp "${resources}/traffic-ops-test.json" traffic-ops-test.conf
-go test --cfg traffic-ops-test.conf
+go test --cfg traffic-ops-test.conf
-coverpkg="../../../v$INPUT_VERSION-client/..."
-coverprofile="v$INPUT_VERSION-coverage.out"
diff --git a/.github/workflows/traffic-ops.yml
b/.github/workflows/traffic-ops.yml
index ce04ac71a6..d3518133bf 100644
--- a/.github/workflows/traffic-ops.yml
+++ b/.github/workflows/traffic-ops.yml
@@ -116,6 +116,11 @@ jobs:
with:
version: 3
smtp_address: 172.17.0.1
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v3
+ with:
+ files: v3-coverage.out
+ flags: traffic_ops_integration,v3
- name: Upload v3 Vault logs
if: ${{ steps.v3Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
@@ -188,6 +193,11 @@ jobs:
with:
version: 4
smtp_address: 172.17.0.1
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v3
+ with:
+ files: v4-coverage.out
+ flags: traffic_ops_integration,v4
- name: Upload v4 Vault logs
if: ${{ steps.v4Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2
@@ -262,6 +272,11 @@ jobs:
with:
version: 5
smtp_address: 172.17.0.1
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v3
+ with:
+ files: v5-coverage.out
+ flags: traffic_ops_integration,v5
- name: Upload v5 Vault logs
if: ${{ steps.v5Tests.outcome != 'success' && always() }}
uses: actions/upload-artifact@v2