Closed pacarvalho closed 4 years ago
No enough information, just a guess.
You didn't provide -p
, then it's .
as fallback, maybe current work directory is different between your local and github action.
I discovered the problem!
Running locally it takes into consideration the node_modules
folder which, as expected, is not pushed to GIT. However, the --ignore-files node_modules/*
does not appear to fix the problem locally. Only deleting the folder solves it.
If there is a case, --ignore-files a.ts
, then even there is any
in a.ts
, it will not count.
But if in b.ts
import { A } from './a.ts'
, then types in a.ts
will be used by b.ts
(by Typescritpt API) that may introduce any
in b.ts
.
That's the difference.
Version(if relevant): 2.7.1 (TSC 3.9.3)
Environment(if relevant):
Local: macOS 10.15.4 Local Github Action: node:12.6-buster-slim (running
act
locally for debug) Actual Github Action: ubuntu-lastestCode(if relevant):
Expected:
I expected the results from running
type-coverage
locally and on the Github Action to be the same. However, they diverge by approximately 10%. Furthermore, in the Github action a list of files (variables?) is printed out whereas this does not happen locally.Actual:
Last few lines of output running the Github Action with https://github.com/nektos/act locally (same result when run on actual Action):
Complete output from running
type-coverage
locally: