Skip to content

Commit

Permalink
integrate with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
thephantomthief authored Dec 22, 2023
1 parent 4549d06 commit 197edb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pr-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ jobs:
/usr/bin/genhtml -q --legend -o coverage --title='net_code_coverage' --ignore-errors source --num-spaces=4 lcov.info
shell: bash

- name: Upload coverage to coveralls
if: always() && steps.generate-total-code-coverage.outcome == 'success'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: $GITHUB_WORKSPACE/contrib/lcov.info

- name: Upload Net Coverage Report for Babelfish Extensions
if: always() && steps.generate-total-code-coverage.outcome == 'success'
uses: actions/upload-artifact@v3
Expand Down
4 changes: 4 additions & 0 deletions contrib/babelfishpg_tsql/src/linked_servers.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,8 @@ linked_server_establish_connection(char *servername, LinkedServerProcess * lspro
}

LINKED_SERVER_DEBUG("LINKED SERVER: Connected to remote server");

LINKED_SERVER_DEBUG("code coverage debug log");
}
PG_CATCH();
{
Expand Down Expand Up @@ -1008,6 +1010,8 @@ getOpenqueryTupdescFromMetadata(char *linked_server, char *query, TupleDesc *tup

LINKED_SERVER_DEBUG("LINKED SERVER: (Metadata) - Fetching result rows");

LINKED_SERVER_DEBUG("code coverage debug log");

/* fetch the rows */
while (LINKED_SERVER_NEXT_ROW(lsproc) != NO_MORE_ROWS)
{
Expand Down

0 comments on commit 197edb1

Please sign in to comment.