Skip to content

Commit

Permalink
Fix codecov.
Browse files Browse the repository at this point in the history
  • Loading branch information
domchen committed Oct 22, 2023
1 parent 34fd29b commit 1b64f10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/autotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
/usr/local/lib/node_modules/depsync
/usr/local/Cellar/gcovr
/usr/local/bin/gcovr
/usr/local/bin/clang-format
/usr/local/Cellar/emsdk
/usr/local/Cellar/emsdk/upstream/emscripten
/usr/local/Cellar/emsdk/node/14.18.2_64bit/bin
Expand Down Expand Up @@ -98,7 +99,7 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: tgfx/result/coverage.xml
file: result/coverage.xml

- name: Save Environment Cache
if: ${{ (github.event_name == 'push') && (steps.environment-cache.outputs.cache-hit != 'true') }}
Expand Down
5 changes: 3 additions & 2 deletions update_baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@
fi

if [[ $1 == "1" ]]; then
mkdir result
cp -r test/out result
mkdir -p result
gcovr -r . -f='src/' -f='include/' --html -o ./result/coverage.html
gcovr -r . -f='src/' -f='include/' --xml-pretty -o ./result/coverage.xml
fi

if [ "$COMPLIE_RESULT" == false ]; then
mkdir -p result
cp -r test/out result
exit 1
fi
}

0 comments on commit 1b64f10

Please sign in to comment.