Skip to content

CICD - Unit | Integration | E2E #7

CICD - Unit | Integration | E2E

CICD - Unit | Integration | E2E #7

Triggered via pull request April 20, 2026 15:20
@JoanMVPopovJoanMVPopov
synchronize #125
cicd
Status Failure
Total duration 7m 20s
Artifacts 1

ci.yml

on: pull_request
Unit & Integration Tests
7m 16s
Unit & Integration Tests
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 2 warnings
Unit & Integration Tests
Error: ENOENT: no such file or directory, open '/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json'
Unit & Integration Tests
Failed to parse the json-summary at path "/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json." Make sure to run vitest before this action and to include the "json-summary" reporter. Original Error: Error: ENOENT: no such file or directory, open '/home/runner/work/CAIT/CAIT/reports/coverage/integration/coverage-summary.json' at async open (node:internal/fs/promises:637:25) at async readFile (node:internal/fs/promises:1269:14) at async s2 (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2128) at async lw (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:103:2209) at async Lle (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:191:570)
Unit & Integration Tests
Process completed with exit code 1.
tests/unit/file.test.ts > addCoverPic > should add cover pic and associate with publication: tests/unit/file.test.ts#L135
AssertionError: expected "spy" to be called with arguments: [ { data: { …(4) } } ] Received: 1st spy call: [ { "data": { "path": "coverPicPath", - "publicationId": 1, + "publicationId": undefined, "title": "cover.jpg", "type": "image/jpeg", }, }, ] Number of calls: 1 ❯ tests/unit/file.test.ts:135:30
tests/unit/file.test.ts > coverPicFetcher > should return cover pic data if coverPic is provided: tests/unit/file.test.ts#L105
AssertionError: expected Promise{…} to deeply equal { fileId: 'coverPicPath', …(1) } - Expected + Received - { - "data": "Y292ZXJQaWNEYXRh", - "fileId": "coverPicPath", - } + Promise {} ❯ tests/unit/file.test.ts:105:18
tests/unit/file.test.ts > coverPicFetcher > should return default cover pic if coverPic is null: tests/unit/file.test.ts#L85
AssertionError: expected Promise{…} to deeply equal { fileId: undefined, …(1) } - Expected + Received - { - "data": "ZGVmYXVsdENvdmVyUGljRGF0YQ==", - "fileId": undefined, - } + Promise {} ❯ tests/unit/file.test.ts:85:18
tests/unit/file.test.ts > profilePicFetcher > should return profile pic data if profilePic is provided: tests/unit/file.test.ts#L62
AssertionError: expected Promise{…} to deeply equal { fileId: 'profilePicPath', …(1) } - Expected + Received - { - "data": "cHJvZmlsZVBpY0RhdGE=", - "fileId": "profilePicPath", - } + Promise {} ❯ tests/unit/file.test.ts:62:18
tests/unit/file.test.ts > profilePicFetcher > should return default profile pic if profilePic is null: tests/unit/file.test.ts#L42
AssertionError: expected Promise{…} to deeply equal { fileId: undefined, …(1) } - Expected + Received - { - "data": "ZGVmYXVsdFByb2ZpbGVQaWNEYXRh", - "fileId": undefined, - } + Promise {} ❯ tests/unit/file.test.ts:42:18
tests/unit/db.test.ts > getAllPublications > should return all publications if no filters are applied: tests/unit/db.test.ts#L271
AssertionError: expected "spy" to be called with arguments: [ { where: { AND: [] }, …(1) } ] Received: 1st spy call: @@ -3,20 +3,26 @@ "include": { "circuit": true, "coverPic": true, "materials": true, "publisher": { - "include": { + "select": { + "firstName": true, + "lastName": true, "profilePic": true, + "username": true, }, }, "tags": true, "usedInCourse": { "select": { "course": true, }, }, + }, + "orderBy": { + "createdAt": "desc", }, "where": { "AND": [], }, }, Number of calls: 1 ❯ tests/unit/db.test.ts:271:39
tests/unit/db.test.ts > getAllPublications > should return publications filtered by search query: tests/unit/db.test.ts#L237
AssertionError: expected "spy" to be called with arguments: [ { where: { AND: [] }, …(1) } ] Received: 1st spy call: @@ -3,20 +3,26 @@ "include": { "circuit": true, "coverPic": true, "materials": true, "publisher": { - "include": { + "select": { + "firstName": true, + "lastName": true, "profilePic": true, + "username": true, }, }, "tags": true, "usedInCourse": { "select": { "course": true, }, }, + }, + "orderBy": { + "createdAt": "desc", }, "where": { "AND": [], }, }, Number of calls: 1 ❯ tests/unit/db.test.ts:237:39
tests/unit/db.test.ts > getAllPublications > should return publications filtered by publisher IDs: tests/unit/db.test.ts#L184
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: @@ -3,20 +3,26 @@ "include": { "circuit": true, "coverPic": true, "materials": true, "publisher": { - "include": { + "select": { + "firstName": true, + "lastName": true, "profilePic": true, + "username": true, }, }, "tags": true, "usedInCourse": { "select": { "course": true, }, }, + }, + "orderBy": { + "createdAt": "desc", }, "where": { "AND": [ { "publisherId": { Number of calls: 1 ❯ tests/unit/db.test.ts:184:39
tests/unit/db.test.ts > getPublicationById > should return null if publication is not found: tests/unit/db.test.ts#L99
AssertionError: expected "spy" to be called with arguments: [ { where: { id: 999 }, …(1) } ] Received: 1st spy call: @@ -45,19 +45,35 @@ "profilePic": true, }, }, }, }, + "course": { + "select": { + "courseName": true, + "educationalLevel": true, + "id": true, + "learningObjectives": true, + "prerequisites": true, + }, + }, "coverPic": true, "maintainers": { "include": { "profilePic": true, }, }, "materials": { "include": { - "files": true, + "fileURLs": true, + "files": { + "select": { + "path": true, + "title": true, + "type": true, + }, + }, "publication": true, }, }, "publisher": { "include": { Number of calls: 1 ❯ tests/unit/db.test.ts:99:41
tests/unit/db.test.ts > getPublicationById > should return a publication with the given id: tests/unit/db.test.ts#L21
AssertionError: expected "spy" to be called with arguments: [ { where: { id: 1 }, …(1) } ] Received: 1st spy call: @@ -45,19 +45,35 @@ "profilePic": true, }, }, }, }, + "course": { + "select": { + "courseName": true, + "educationalLevel": true, + "id": true, + "learningObjectives": true, + "prerequisites": true, + }, + }, "coverPic": true, "maintainers": { "include": { "profilePic": true, }, }, "materials": { "include": { - "files": true, + "fileURLs": true, + "files": { + "select": { + "path": true, + "title": true, + "type": true, + }, + }, "publication": true, }, }, "publisher": { "include": { Number of calls: 1 ❯ tests/unit/db.test.ts:21:41
Unit & Integration Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Unit & Integration Tests
No files were found with the provided path: reports/coverage/integration. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
coverage-unit Expired
186 KB
sha256:75c3c16bce2034c74efd7e9fabd0c4c3d09b8ac9b74738864d14da2c582b41e9