File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,30 +82,18 @@ jobs:
8282 run : |
8383 make coverage
8484
85- - name : 🔍 Show luacov-lcov reporter output
85+ - name : Run luacov-lcov manually to generate lcov.info
8686 run : |
87- echo "Running luacov-lcov manually:"
88- ls -l luacov.stats.out || echo "No stats file"
89- luarocks list | grep luacov || echo "luacov not installed?"
90- luacov -t LcovReporter > lcov.info 2> lcov.stderr.log || echo "luacov failed"
91-
92- echo "Output file?"
93- ls -l lcov.info || echo "lcov.info not generated"
94-
95- echo "stderr from luacov:"
96- cat lcov.stderr.log
97- - name: Upload code coverage
98- uses: codecov/codecov-action@v4
99- with:
100- files: lcov.info # <-- new file
101- disable_search: true
102- token: ${{ secrets.CODECOV_TOKEN }}
103-
104- release :
105- name : Semantic Release
106- runs-on : ubuntu-latest
107- needs : test
108- if : github.ref == 'refs/heads/main' && github.event_name == 'push'
87+ eval "$(luarocks --lua-version=5.1 path --bin)"
88+ echo "LuaRocks PATH: $PATH"
89+ which luacov || echo "luacov still not found"
90+ luacov -t LcovReporter > lcov.info
91+ ls -l lcov.info
92+ release :
93+ name : Semantic Release
94+ runs-on : ubuntu-latest
95+ needs : test
96+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
10997
11098 steps :
11199 - name : Checkout repo
Original file line number Diff line number Diff line change 1515 nvim --headless -u tests/minimal_init.lua -c " PlenaryBustedDirectory tests/" '
1616
1717coverage :
18- @bash -c ' eval "$$(luarocks --lua-version=5.1 path)" && \
18+ @bash -c ' eval "$$(luarocks --lua-version=5.1 path --bin )" && \
1919 nvim --headless -u tests/minimal_init.lua -c " luafile tests/run_cov.lua" || exit 0 && \
2020 if [ -f luacov.stats.out ]; then \
2121 echo " ::group::Coverage" ; \
You can’t perform that action at this time.
0 commit comments