Add output input for customizing reports directory #249
ci.yml
on: pull_request
TypeScript Tests
36s
GitHub Actions Test
31s
Annotations
4 errors
|
GitHub Actions Test
�[1;H�[0J�[1;H�[1;HRun plugins: 0% | �[0K
�[0K�[1;HRun plugins: 0% | Executing ESLint�[0K
�[0K�[1;HRun plugins: 0% | Executing Code coverage�[0K
�[0K�[1;HRun plugins: 0% | Executing JS Packages�[0K
�[0K�[1;HRun plugins: ████████████████████████████████████████████████████████████████████████████████ 100% | Done running plugins�[0K
�[0K
Error: Executing 1 plugin failed.
Error: - Plugin Code coverage (coverage) produced the following error:
- [ error ] stdout from failed coverage tool process:
[ error ]
> @code-pushup/github-action@0.0.0 ci-test
> NODE_OPTIONS=--experimental-vm-modules npx jest --coverage
Running Code PushUp in standalone project mode
::error::Error: ENOENT: no such file or directory, open 'tmp/git-repo/report.json'
Running Code PushUp in standalone project mode
::error::Error: ENOENT: no such file or directory, open 'tmp/git-repo/report.json'
----------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------------|---------|----------|---------|---------|-------------------
All files | 30 | 17.85 | 38.46 | 30.65 |
annotations.ts | 0 | 0 | 0 | 0 | 6-30
api.ts | 27.77 | 0 | 14.28 | 29.41 | 23-69
artifact.ts | 6.38 | 0 | 0 | 6.52 | 21-148
index.ts | 0 | 100 | 100 | 0 | 3
inputs.ts | 71.42 | 63.63 | 80 | 74.07 | 56,65-72,81
main.ts | 25.92 | 4.76 | 50 | 25.92 | 31-85
options.ts | 100 | 100 | 100 | 100 |
refs.ts | 100 | 66.66 | 100 | 100 | 17
----------------|---------|----------|---------|---------|-------------------
[ error ] stderr from failed coverage tool process:
[ error ] (node:2083) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
FAIL __tests__/main.test.ts (8.561 s)
code-pushup action
push event
✕ should collect report (1040 ms)
pull request event
✕ should compare reports (1060 ms)
● code-pushup action › push event › should collect report
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "code-pushup-report", ArrayContaining [StringContaining "report.json", StringContaining "report.md"], StringContaining ".code-pushup", {"retentionDays": 14}
Number of calls: 0
140 |
141 | // eslint-disable-next-line @typescript-eslint/unbound-method
> 142 | expect(artifact.uploadArtifact).toHaveBeenCalledWith<
| ^
143 | Parameters<ArtifactClient['uploadArtifact']>
144 | >(
145 | 'code-pushup-report',
at Object.<anonymous> (__tests__/main.test.ts:142:39)
● code-pushup action › pull request event › should compare reports
expect(received).resolves.toBeTruthy()
Received promise rejected instead of resolved
Rejected to value: [Error: ENOENT: no such file or directory, open 'tmp/git-repo/.code-pushup/report-diff.md']
201 | 'utf8'
202 | )
> 203 | await expect(mdPromise).resolves.toBeTruthy()
| ^
204 | const md = await mdPromise
205 | expect(md.replace(/[\da-f]{40}/g, '`<commit-sha>`')).toMatchSnapshot()
206 | })
at expect (node_modules/exp
|
|
TypeScript Tests
Error: ENOENT: no such file or directory, open 'tmp/git-repo/report.json'
|
|
TypeScript Tests
Error: ENOENT: no such file or directory, open 'tmp/git-repo/report.json'
|
|
TypeScript Tests
Process completed with exit code 1.
|