File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 4
4
#
5
5
version : 2.1
6
6
jobs :
7
- test :
7
+ test-and-build :
8
8
parameters :
9
- graphql-version :
9
+ graphql-test- version :
10
10
type : string
11
+ default : " "
11
12
12
13
docker :
13
14
# specify the version you desire here
25
26
# fallback to using the latest cache if no exact match is found
26
27
- v1-dependencies-
27
28
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
31
38
32
39
- save_cache :
33
40
paths :
40
47
workflows :
41
48
all-tests :
42
49
jobs :
43
- - test :
50
+ - test-and-build :
51
+ name : " Test graphql version"
44
52
matrix :
45
53
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
You can’t perform that action at this time.
0 commit comments