From 7522935a00ae45be870aaa8751ca57cf94528e5f Mon Sep 17 00:00:00 2001 From: Muhammad Nawaz Date: Mon, 20 Nov 2023 14:17:45 +0500 Subject: [PATCH] Updated for code coverage --- .github/workflows/test.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bc0c4d3..d9321a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,7 +33,8 @@ jobs: mkdir -p ~/.local/bin ln -s $(realpath kong-pongo/pongo.sh) ~/.local/bin/pongo - - run: pongo run -- --coverage + # - run: pongo run -- --coverage + - run: pongo run # code coverage flag is added to https://github.com/nawaz1991/kong-pongo/blob/master/pongo.sh#L1161 # Optional upload of coverage data, # just ugly, something to fix... @@ -46,14 +47,6 @@ jobs: continue-on-error: true run: | luarocks install luacov-coveralls - # hack: luacov config file has a path for inside the pongo container - # rewrite those to the local location in GHA - if [ -f .luacov ]; then - cp .luacov .luacov_backup - cat .luacov_backup | sed 's/\/kong-plugin\/luacov./luacov./' > .luacov - fi - - rm *.report.out luacov-coveralls #luacov-coveralls --output coveralls.out # undo the hack