Skip to content

Commit fdab745

Browse files
committed
Try testing without type checking and also building with type checking
1 parent 3e8478b commit fdab745

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.circleci/config.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
#
55
version: 2.1
66
jobs:
7-
test:
7+
test-and-build:
88
parameters:
9-
graphql-version:
9+
graphql-test-version:
1010
type: string
11+
default: ""
1112

1213
docker:
1314
# specify the version you desire here
@@ -25,9 +26,15 @@ jobs:
2526
# fallback to using the latest cache if no exact match is found
2627
- v1-dependencies-
2728

28-
- run: yarn install --ignore-scripts
29-
30-
- run: yarn --ignore-scripts add --dev graphql@<< parameters.graphql-version >>
29+
- when:
30+
condition: << parameters.graphql-test-version >>
31+
steps:
32+
- run: yarn install --ignore-scripts
33+
- run: yarn --ignore-scripts add --dev graphql@<< parameters.graphql-version >>
34+
- unless:
35+
condition: << parameters.graphql-test-version >>
36+
steps:
37+
- run: yarn install --frozen-lockfile
3138

3239
- save_cache:
3340
paths:
@@ -40,7 +47,10 @@ jobs:
4047
workflows:
4148
all-tests:
4249
jobs:
43-
- test:
50+
- test-and-build:
51+
name: "Test graphql version"
4452
matrix:
4553
parameters:
46-
graphql-version: ["~0.13", "~14.0", "~14.5", "~14.6"]
54+
graphql-test-version: ["~0.13", "~14.0", "~14.5", "~14.6"]
55+
- test-and-build:
56+
name: test-and-build-with-typecheck

0 commit comments

Comments
 (0)