Skip to content

Commit

Permalink
Avoid reporting code coverage twice
Browse files Browse the repository at this point in the history
  • Loading branch information
knyar committed Jan 15, 2022
1 parent a4c5bd7 commit e2fce10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
- run: luacheck --globals ngx -- prometheus.lua prometheus_keys.lua prometheus_resty_counter.lua
- run: luacheck --globals luaunit ngx TestPrometheus TestKeyIndex -- prometheus_test.lua
- run: lua -lluacov prometheus_test.lua
- run: luacov-coveralls --include %./prometheus.lua --include %./prometheus_keys.lua --include %./prometheus_resty_counter.lua
- run: luacov-coveralls --include prometheus.lua --include prometheus_keys.lua --include prometheus_resty_counter.lua
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Only report test coverage for lua 5.1 to avoid doing it twice.
if: ${{ matrix.lua == '5.1' }}
integration:
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down

0 comments on commit e2fce10

Please sign in to comment.