From 4fc56cc90ac4e4e20cdc2393368907cc3db10bab Mon Sep 17 00:00:00 2001 From: Lucas Li <35748253+yzlucas@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:43:07 -0700 Subject: [PATCH] Test scan (#49) * test * try use node version 18 * trigger test * Remove package-lock.json * trigger test * Update the browsers property to use ChromeHeadless instead of Chrome * trigger p * update unit test * run unit test * missing fi * test scan * change the path of converage-summary * teigger * print out the coverage-summary.json * trigger * update grep script --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0439d4284..f45f28e18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Run Tests +name: Run Tests env: NPMRC: ${{ secrets.NPMRC }} @@ -54,7 +54,7 @@ jobs: # Ensure coverage meets the required threshold - name: Check code coverage run: | - if grep -q '"statements": \([8-9][0-9]\|100\)' coverage/wfprev/coverage-summary.json; then + if grep -q '"statements":.*"pct": \([8-9][0-9]\|100\)' coverage/wfprev/coverage-summary.json; then echo "Test passed"; else echo "Code coverage is less than 80%! Exiting...";