Skip to content

Commit

Permalink
Add query check to circle ci
Browse files Browse the repository at this point in the history
Dogfoods apollo queries:check
  • Loading branch information
evans committed Aug 31, 2018
1 parent 23abc81 commit 53b2724
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@ jobs:
- run: npm install --ignore-scripts
- run: npm run lint

Query Check:
docker: [{ image: "circleci/node:8" }]
steps:
- *run_install_desired_npm
- checkout
- restore_cache:
keys:
# When lock file changes, use increasingly general patterns to restore cache
- npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-v1-{{ .Branch }}-
- npm-v1-
- run: npm --version
- run: npm install
- run: ./packages/apollo/bin/run queries:check --queries="packages/apollo/src/operations/*" --key=$STAGING_API_KEY --engine=https://engine-staging-graphql.apollographql.com/api/graphql
- save_cache:
key: npm-v1-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
# This should cache the npm cache instead of node_modules, which is needed because
# npm ci actually removes node_modules before installing to guarantee a clean slate.
- ~/.npm
- run: npm run circle

ignore_doc_branches: &ignore_doc_branches
filters:
branches:
Expand All @@ -75,3 +97,5 @@ workflows:
<<: *ignore_doc_branches
- Linting:
<<: *ignore_doc_branches
- Query Check:
<<: *ignore_doc_branches

0 comments on commit 53b2724

Please sign in to comment.