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