diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 0d6ea747..72e33bb4 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -117,6 +117,11 @@ jobs: - name: "Continuous Integration: test" run: pnpm run --if-present test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + publish-website: runs-on: ubuntu-latest needs: build diff --git a/packages/components-react/code-block-react/jest.config.mjs b/packages/components-react/code-block-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/code-block-react/jest.config.mjs +++ b/packages/components-react/code-block-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/code-react/jest.config.mjs b/packages/components-react/code-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/code-react/jest.config.mjs +++ b/packages/components-react/code-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/color-sample-react/jest.config.mjs b/packages/components-react/color-sample-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/color-sample-react/jest.config.mjs +++ b/packages/components-react/color-sample-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/data-badge-react/jest.config.mjs b/packages/components-react/data-badge-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/data-badge-react/jest.config.mjs +++ b/packages/components-react/data-badge-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-1-react/jest.config.mjs b/packages/components-react/heading-1-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-1-react/jest.config.mjs +++ b/packages/components-react/heading-1-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-2-react/jest.config.mjs b/packages/components-react/heading-2-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-2-react/jest.config.mjs +++ b/packages/components-react/heading-2-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-3-react/jest.config.mjs b/packages/components-react/heading-3-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-3-react/jest.config.mjs +++ b/packages/components-react/heading-3-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-4-react/jest.config.mjs b/packages/components-react/heading-4-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-4-react/jest.config.mjs +++ b/packages/components-react/heading-4-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-5-react/jest.config.mjs b/packages/components-react/heading-5-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-5-react/jest.config.mjs +++ b/packages/components-react/heading-5-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-6-react/jest.config.mjs b/packages/components-react/heading-6-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-6-react/jest.config.mjs +++ b/packages/components-react/heading-6-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/heading-react/jest.config.mjs b/packages/components-react/heading-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/heading-react/jest.config.mjs +++ b/packages/components-react/heading-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/link-react/jest.config.mjs b/packages/components-react/link-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/link-react/jest.config.mjs +++ b/packages/components-react/link-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/mark-react/jest.config.mjs b/packages/components-react/mark-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/mark-react/jest.config.mjs +++ b/packages/components-react/mark-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/number-badge-react/jest.config.mjs b/packages/components-react/number-badge-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/number-badge-react/jest.config.mjs +++ b/packages/components-react/number-badge-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/paragraph-react/jest.config.mjs b/packages/components-react/paragraph-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/paragraph-react/jest.config.mjs +++ b/packages/components-react/paragraph-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', }; diff --git a/packages/components-react/skip-link-react/jest.config.mjs b/packages/components-react/skip-link-react/jest.config.mjs index ce52c07c..a8c5e33c 100644 --- a/packages/components-react/skip-link-react/jest.config.mjs +++ b/packages/components-react/skip-link-react/jest.config.mjs @@ -3,5 +3,13 @@ * */ export default { coverageProvider: 'v8', + coverageThreshold: { + global: { + branches: 100, + functions: 100, + lines: 100, + statements: 100, + }, + }, testEnvironment: 'jest-environment-jsdom', };