mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
docs-coverage script
This commit is contained in:
parent
b6bf4a2cff
commit
4c58a90ab3
5
.github/workflows/test.docs.yml
vendored
5
.github/workflows/test.docs.yml
vendored
@ -48,5 +48,8 @@ jobs:
|
||||
run: |
|
||||
npm install
|
||||
npm run docs:generate
|
||||
bash -c "if (( $(sed -nE 's/.*>([0-9]{1,3})%<.*/\1/p' docs/coverage.svg | head -1) > $COVERAGE_REQUIRED )) then echo \"echo "Coverage: $(sed -nE 's/.*>([0-9]{1,3})%<.*/\1/p' docs/coverage.svg | head -1)/$COVERAGE_REQUIRED\";exit 0; else exit 1; fi"
|
||||
./scripts/docs-coverage.sh
|
||||
working-directory: ./
|
||||
|
||||
|
||||
bash -c "COVERAGE=$(sed -nE 's/.*>([0-9]{1,3})%<.*/\1/p' docs/coverage.svg | head -1); echo $COVERAGE;if (( $COVERAGE >= $COVERAGE_REQUIRED )) then exit 0; else echo \"Coverage: $COVERAGE/$COVERAGE_REQUIRED\"; exit 1; fi"
|
||||
9
scripts/docs-coverage.sh
Executable file
9
scripts/docs-coverage.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
COVERAGE=$(sed -nE 's/.*>([0-9]{1,3})%<.*/\1/p' docs/coverage.svg | head -1)
|
||||
|
||||
if (( $COVERAGE >= $COVERAGE_REQUIRED )) then
|
||||
exit 0;
|
||||
else
|
||||
echo "Coverage: $COVERAGE/$COVERAGE_REQUIRED";
|
||||
exit 1;
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user