Skip to content

Commit

Permalink
Test scan (#49)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yzlucas authored Sep 18, 2024
1 parent 8b26e5b commit 4fc56cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: Run Tests

env:
NPMRC: ${{ secrets.NPMRC }}
Expand Down Expand Up @@ -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...";
Expand Down

0 comments on commit 4fc56cc

Please sign in to comment.