-
-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Tried to switch from @v1 to @V3 and got this:
Run zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: coverage.lcov
artifact-name: code-coverage-report
github-token: ***
minimum-coverage: 0
env:
...
Error: Cannot find module 'lcov-total'
Require stack:
- /home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/main/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.2388 (/home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/webpack:/github-actions-report-lcov/node_modules/@vercel/ncc/dist/ncc/@@notfound.js:1:1)
at __nccwpck_require__ (/home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/webpack:/github-actions-report-lcov/webpack/bootstrap:21:1)
at /home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/webpack:/github-actions-report-lcov/src/main.js:6:1
at /home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/main/index.js:20541:3
at Object.<anonymous> (/home/runner/work/_actions/zgosalvez/github-actions-report-lcov/v3/dist/main/index.js:20544:12)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
the workflow file looks like this:
runs-on: ubuntu-latest
env:
...
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
...
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Run tests
run: go test -cover -coverprofile=gotest.coverage ./...
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1
with:
infile: gotest.coverage
...
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: coverage.lcov
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
davestimpert, jose-reveni, bastijnv, kefasjw, a-h-i and 1 more
Metadata
Metadata
Assignees
Labels
No labels