From 72f65c1cb33aa1581eb50e17fbb323c8dde1a00d Mon Sep 17 00:00:00 2001 From: dhruv Date: Tue, 11 May 2021 17:37:46 +0530 Subject: [PATCH] ci: add code coverage --- .github/workflows/ci.yml | 5 ++++- .pongo/pongo-setup.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .pongo/pongo-setup.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fad2ea7..b9c2aa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,4 +43,7 @@ jobs: run: ../kong-pongo/pongo.sh lint - name: Test - run: ../kong-pongo/pongo.sh run + run: ../kong-pongo/pongo.sh run -c + + - name: Coverage + run: bash <(curl -s https://codecov.io/bash) diff --git a/.pongo/pongo-setup.sh b/.pongo/pongo-setup.sh new file mode 100644 index 0000000..41d5930 --- /dev/null +++ b/.pongo/pongo-setup.sh @@ -0,0 +1 @@ +luarocks install luacov