diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 3a4bc6c..9cd562d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -28,6 +28,8 @@ jobs: - run: npm ci - run: npm run build - run: npm run test + - name: Publish Test Results + run: npx github-actions-ctrf summary path/to/your/ctrf-report.json - run: npm run lint-check - run: npm run format-check diff --git a/jest.config.js b/jest.config.js index 8bb3720..fe7fd5d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,4 +2,8 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', + reporters: [ + 'default', + ['jest-ctrf-json-reporter', {}], + ], } diff --git a/package-lock.json b/package-lock.json index 7e7cf9d..e19f9bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cypress-ctrf-json-reporter", - "version": "0.0.1", + "version": "0.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "cypress-ctrf-json-reporter", - "version": "0.0.1", + "version": "0.0.5", "license": "ISC", "devDependencies": { "@types/jest": "^29.5.6", @@ -21,6 +21,7 @@ "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.7.0", + "jest-ctrf-json-reporter": "^0.0.5", "prettier": "^3.1.1", "ts-jest": "^29.1.1", "typescript": "^5.2.2" @@ -4545,6 +4546,12 @@ } } }, + "node_modules/jest-ctrf-json-reporter": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/jest-ctrf-json-reporter/-/jest-ctrf-json-reporter-0.0.5.tgz", + "integrity": "sha512-PgjYfAYwCfgGKgrDqNO2EB1At7tVGRUOp+0S1EqO2+7+Q7j2aAsPDuCwdURDTyZpfe6e5IyQfIHl681f0JtnWw==", + "dev": true + }, "node_modules/jest-diff": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", @@ -9966,6 +9973,12 @@ "strip-json-comments": "^3.1.1" } }, + "jest-ctrf-json-reporter": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/jest-ctrf-json-reporter/-/jest-ctrf-json-reporter-0.0.5.tgz", + "integrity": "sha512-PgjYfAYwCfgGKgrDqNO2EB1At7tVGRUOp+0S1EqO2+7+Q7j2aAsPDuCwdURDTyZpfe6e5IyQfIHl681f0JtnWw==", + "dev": true + }, "jest-diff": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", diff --git a/package.json b/package.json index 2e16507..35e2eff 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.7.0", + "jest-ctrf-json-reporter": "^0.0.5", "prettier": "^3.1.1", "ts-jest": "^29.1.1", "typescript": "^5.2.2"