From 1cdf5a2684d2ef772164763de97b8d17337b22e2 Mon Sep 17 00:00:00 2001 From: Milap Sheth Date: Mon, 29 Jul 2024 03:22:02 -0400 Subject: [PATCH] codecov revert --- .github/workflows/codecov.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 58d1c8dd..23773890 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -28,7 +28,17 @@ jobs: run: npm ci - name: Build - run: npm run build + run: npm run build > build.log 2>&1 + + - name: Check for build warnings + run: | + if grep -q -i "error" build.log || grep -q -i "warning" build.log; then + echo "Build contains following errors or warnings..." + cat build.log + exit 0; + else + exit 0; + fi - name: Generate code coverage run: npm run coverage