Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
evilaliv3 committed Feb 9, 2025
1 parent a1f9092 commit 09e26a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/scripts/run_tests_client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pip3 install -r requirements/requirements-$(lsb_release -cs).txt

cd $GITHUB_WORKSPACE/client # to install frontend dependencies
npm install -d
./node_modules/grunt/bin/grunt build_for_testing
#./node_modules/grunt/bin/grunt build_for_testing

cd $GITHUB_WORKSPACE/backend && coverage run ./bin/globaleaks -z &

Expand All @@ -24,7 +24,7 @@ sleep 5

# Running client tests locally
echo "Running client tests locally collecting code coverage"
cd $GITHUB_WORKSPACE/client && npm test
#cd $GITHUB_WORKSPACE/client && npm test
if [ $? -ne 0 ]; then
client_test_failed=1
fi
Expand All @@ -33,9 +33,10 @@ kill -15 $PID

sleep 10

sed -i 's|SF:dist/|SF:client/|g' $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l TypeScript -r $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info
#sed -i 's|SF:dist/|SF:client/|g' $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info
#bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l TypeScript -r $GITHUB_WORKSPACE/client/cypress/coverage/lcov.info

ls $GITHUB_WORKSPACE/backend -al
cd $GITHUB_WORKSPACE/backend && coverage lcov -o lcov.info
sed -i 's|SF:globaleaks/|SF:backend/globaleaks/|g' $GITHUB_WORKSPACE/backend/lcov.info
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Python -r $GITHUB_WORKSPACE/backend/lcov.info
Expand Down
2 changes: 1 addition & 1 deletion backend/.coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[run]
source = globaleaks
omit = globaleaks/test
omit = globaleaks/tests

0 comments on commit 09e26a6

Please sign in to comment.