Skip to content

Commit

Permalink
Updated for code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nawaz1991 committed Nov 20, 2023
1 parent f30a1d5 commit 7522935
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand All @@ -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
Expand Down

0 comments on commit 7522935

Please sign in to comment.