File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ common_test_steps: &common_test_steps
2020 - *run_install_desired_npm
2121 - checkout
2222 - restore_cache :
23- keys :
24- # When lock file changes, use increasingly general patterns to restore cache
25- - npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
26- - npm-v1-{{ .Branch }}-
27- - npm-v1-
23+ keys :
24+ # When lock file changes, use increasingly general patterns to restore cache
25+ - npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
26+ - npm-v1-{{ .Branch }}-
27+ - npm-v1-
2828 - run : npm --version
2929 - run : npm ci
3030 - save_cache :
5959 - run : npm install --ignore-scripts
6060 - run : npm run lint
6161
62+ Query Check :
63+ docker : [{ image: "circleci/node:8" }]
64+ steps :
65+ - *run_install_desired_npm
66+ - checkout
67+ - restore_cache :
68+ keys :
69+ # When lock file changes, use increasingly general patterns to restore cache
70+ - npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
71+ - npm-v1-{{ .Branch }}-
72+ - npm-v1-
73+ - run : npm --version
74+ - run : npm install
75+ - run : packages/apollo-cli/bin/run queries:check --queries="packags/apollo-cli/src/operations/*" --key=$STAGING_API_KEY --engine=https://engine-staging-graphql.apollographql.com/api/graphql
76+ - save_cache :
77+ key : npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
78+ paths :
79+ # This should cache the npm cache instead of node_modules, which is needed because
80+ # npm ci actually removes node_modules before installing to guarantee a clean slate.
81+ - ~/.npm
82+ - run : npm run circle
83+
6284ignore_doc_branches : &ignore_doc_branches
6385 filters :
6486 branches :
@@ -75,3 +97,5 @@ workflows:
7597 << : *ignore_doc_branches
7698 - Linting :
7799 << : *ignore_doc_branches
100+ - Query Check :
101+ << : *ignore_doc_branches
You can’t perform that action at this time.
0 commit comments