diff --git a/.circleci/config.yml b/.circleci/config.yml index 95946e89..a60141ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -254,7 +254,17 @@ jobs: - finalize: persist: false - test_all: + test_changelog: + executor: node_15 + working_directory: /mnt/ramdisk + steps: + - initialize + - test: + path: packages/undercut-conventional-changelog-preset + - finalize: + persist: false + + test_core: parameters: executor: type: executor @@ -286,7 +296,8 @@ workflows: workflow: jobs: - setup - - test_all: + - test_changelog + - test_core: matrix: parameters: executor: [node_12, node_14, node] @@ -294,13 +305,13 @@ workflows: - setup - build_pull: requires: - - test_all + - test_core - build_push: requires: - - test_all + - test_core - build_utils: requires: - - test_all + - test_core - build_node_10: requires: - build_pull @@ -316,7 +327,7 @@ workflows: - build_utils - build_website: requires: - - test_all + - setup - release: requires: - build_pull @@ -325,3 +336,4 @@ workflows: - build_cli - build_web_2019 - build_website + - test_changelog diff --git a/jest.config.cjs b/jest.config.cjs index 26f22f2b..73e829d0 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -4,7 +4,7 @@ module.exports = { projects: [ // `/packages/undercut-cli/`, -- Should be tested from a Node 10 environment. // `/packages/undercut-config/`, -- Should have no tests. - `/packages/undercut-conventional-changelog-preset/`, + // `/packages/undercut-conventional-changelog-preset/`, -- Test as a separate job or test:changelog script. // `/packages/undercut-node-10/`, -- Should be tested from a Node 10 environment. // `/packages/undercut-perf/`, -- Performance tests must be in a separate job (very slow). `/packages/undercut-pull/`, diff --git a/package.json b/package.json index 59172512..e6ff284a 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "lint": "./scripts/lint.sh", "release": "lerna version --no-git-tag-version --no-private --no-push --conventional-commits", "test": "jest", - "test:int": "jest --test-path-pattern='/.+\\.test\\.int\\.(c|m)?js$'", - "test:unit": "jest --test-path-pattern='/.+\\.test\\.(c|m)?js$'" + "test:changelog": "cd ./packages/undercut-conventional-changelog-preset/ && yarn test" }, "devDependencies": { "@babel/core": "^7.12.7",