From 0422316a8ff6a11ef0d28d67a4c5bc22aefcbd68 Mon Sep 17 00:00:00 2001 From: dimkouv Date: Thu, 3 Oct 2024 20:51:40 +0300 Subject: [PATCH] fix cov + clean testcache --- .github/workflows/ccip-ocr3-build-lint-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ccip-ocr3-build-lint-test.yml b/.github/workflows/ccip-ocr3-build-lint-test.yml index 9f73d9d58..b394bc2fa 100644 --- a/.github/workflows/ccip-ocr3-build-lint-test.yml +++ b/.github/workflows/ccip-ocr3-build-lint-test.yml @@ -46,7 +46,8 @@ jobs: run: | git fetch origin ${{ github.base_ref }} git checkout ${{ github.base_ref }} - { time TEST_COUNT=1 COVERAGE_FILE=coverage.out make test; } 2> test-results.txt + go clean -testcache + { time TEST_COUNT=1 COVERAGE_FILE=coverage_target.out make test; } 2> test-results.txt real_time=$(cat test-results.txt | grep real | awk '{print $2}') echo "tests_duration_target=$real_time" >> $GITHUB_ENV total=$(go tool cover -func=coverage_target.out | grep total | awk '{print $3}')