From 574003cff5e76103134756fb4422413a1a499bfe Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Fri, 13 Dec 2019 13:38:34 -0800 Subject: [PATCH 1/2] test: split query and mutation integration tests in CI config Signed-off-by: Mike Murray --- .circleci/config.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b8eacfb7bcb..be466748098 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,7 +79,7 @@ jobs: name: Run Unit Tests command: npm run test:unit - test-integration: + test-integration-query: <<: *defaults steps: - checkout @@ -88,8 +88,21 @@ jobs: - reaction-v3-node-modules-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }} - reaction-v3-node-modules-{{ .Branch }} - run: - name: Run Integration Tests - command: npm run test:integration + name: Run Integration Query Tests + command: npm run test:integration:query + + test-integration-mutation: + <<: *defaults + steps: + - checkout + - restore_cache: + keys: + - reaction-v3-node-modules-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }} + - reaction-v3-node-modules-{{ .Branch }} + - run: + name: Run Integration Mutation Tests + command: npm run test:integration:mutation + docker-build-push: <<: *defaults @@ -156,14 +169,16 @@ workflows: - eslint - graphql-lint - test-unit - - test-integration + - test-integration-query + - test-integration-mutation - deploy-docs: requires: - dockerfile-lint - eslint - graphql-lint - test-unit - - test-integration + - test-integration-query + - test-integration-mutation filters: branches: only: /^master$/ From bdf70337e8b8dd700fdbbc42e07dfb5a5acedaef Mon Sep 17 00:00:00 2001 From: Mike Murray Date: Fri, 13 Dec 2019 13:42:51 -0800 Subject: [PATCH 2/2] test: add jobs for query and mutation integration tests Signed-off-by: Mike Murray --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index be466748098..16e59f44104 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -159,7 +159,10 @@ workflows: - test-unit: requires: - install-dependencies - - test-integration: + - test-integration-query: + requires: + - install-dependencies + - test-integration-mutation: requires: - install-dependencies - docker-build-push: