From 06a48adfd393a4ebf4bffb7ff0ff84444ec5c59e Mon Sep 17 00:00:00 2001 From: Nicolas Polizzo Date: Thu, 7 Dec 2023 00:54:33 +0100 Subject: [PATCH] change jest coverage config --- .github/workflows/test.yml | 2 +- package-lock.json | 28 ++++++++++++++-------------- package.json | 15 ++++++++++++--- 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3355ee1..80e3439 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,13 +24,13 @@ jobs: uses: greatwizard/coverage-diff-action@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - coverage-filename: coverage/cobertura-coverage.xml allowed-to-fail: false badge-enabled: true badge-threshold-green: 90 badge-threshold-orange: 80 - name: Generate Changelog run: git log --oneline $(git describe --tags --abbrev=0)..HEAD >> CHANGELOG.txt + if: ${{ startsWith(github.ref, 'refs/tags/') }} - name: Release uses: softprops/action-gh-release@v1 if: ${{ startsWith(github.ref, 'refs/tags/') }} diff --git a/package-lock.json b/package-lock.json index e12c7eb..1d7d95f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "mjml-validator": "^4.13.0" }, "devDependencies": { - "@types/jest": "^29.5.10", + "@types/jest": "^29.5.11", "@types/mjml": "^4.7.4", "@types/mjml-core": "^4.7.4", "@types/mjml-validator": "^4.13.4", @@ -24,7 +24,7 @@ "npm-check": "^6.0.1", "prettier": "^3.1.0", "ts-jest": "^29.1.1", - "typescript": "^5.3.2" + "typescript": "^5.3.3" } }, "node_modules/@ampproject/remapping": { @@ -1356,9 +1356,9 @@ } }, "node_modules/@types/jest": { - "version": "29.5.10", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.10.tgz", - "integrity": "sha512-tE4yxKEphEyxj9s4inideLHktW/x6DwesIwWZ9NN1FKf9zbJYsnhBoA9vrHA/IuIOKwPa5PcFBNV4lpMIOEzyQ==", + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", "dev": true, "dependencies": { "expect": "^29.0.0", @@ -7934,9 +7934,9 @@ } }, "node_modules/typescript": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", - "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -9437,9 +9437,9 @@ } }, "@types/jest": { - "version": "29.5.10", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.10.tgz", - "integrity": "sha512-tE4yxKEphEyxj9s4inideLHktW/x6DwesIwWZ9NN1FKf9zbJYsnhBoA9vrHA/IuIOKwPa5PcFBNV4lpMIOEzyQ==", + "version": "29.5.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", + "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", "dev": true, "requires": { "expect": "^29.0.0", @@ -14415,9 +14415,9 @@ } }, "typescript": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.2.tgz", - "integrity": "sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==", + "version": "5.3.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", + "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index a06ec7c..5c7e229 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "homepage": "https://github.com/Freezystem/mjml-bar-chart", "license": "MIT", "devDependencies": { - "@types/jest": "^29.5.10", + "@types/jest": "^29.5.11", "@types/mjml": "^4.7.4", "@types/mjml-core": "^4.7.4", "@types/mjml-validator": "^4.13.4", @@ -54,7 +54,7 @@ "npm-check": "^6.0.1", "prettier": "^3.1.0", "ts-jest": "^29.1.1", - "typescript": "^5.3.2" + "typescript": "^5.3.3" }, "dependencies": { "mjml": "^4.14.1", @@ -67,10 +67,19 @@ "coverageDirectory": "/coverage", "coverageReporters": [ "text-summary", - "cobertura" + "json-summary" ], "preset": "ts-jest", "testEnvironment": "node", + "reporters": [ + [ + "github-actions", + { + "silent": false + } + ], + "summary" + ], "moduleFileExtensions": [ "ts", "js"