Skip to content

Commit 2a1aff1

Browse files
committed
pathing
1 parent 4917d6b commit 2a1aff1

2 files changed

Lines changed: 12 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff 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

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test:
1515
nvim --headless -u tests/minimal_init.lua -c "PlenaryBustedDirectory tests/"'
1616

1717
coverage:
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"; \

0 commit comments

Comments
 (0)