File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ version: 2.1
3
3
defaults : &defaults
4
4
working_directory : ~/repo
5
5
docker :
6
- - image : cimg/node:16.15.1
6
+ # Jest has issues with node > 16.11.0, please stick node version until the issues are resolved
7
+ # https://github.com/facebook/jest/issues/11956
8
+ - image : cimg/node:16.10.0
7
9
8
10
set_env : &set_env
9
11
name : Setup Environment Variables
@@ -14,6 +16,7 @@ set_env: &set_env
14
16
source $BASH_ENV
15
17
echo "export CIRCLE_PR_BASE_SHA=`curl -s https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pulls/${CIRCLE_PR_NUMBER} | jq -r '.base.sha'`" >> $BASH_ENV
16
18
echo 'export AFFECTED_ARGS="--base=${CIRCLE_PR_BASE_SHA}"' >> $BASH_ENV
19
+ echo 'export NODE_OPTIONS="--max_old_space_size=6144"' >> $BASH_ENV
17
20
18
21
source $BASH_ENV
19
22
echo $AFFECTED_ARGS
53
56
- run : yarn nx workspace-lint
54
57
- run : yarn nx affected --target=lint --head=HEAD --maxWarnings=0 ${AFFECTED_ARGS}
55
58
59
+ test :
60
+ << : *defaults
61
+ steps :
62
+ - checkout
63
+ - run :
64
+ << : *set_env
65
+ - restore_cache :
66
+ << : *yarn_cache
67
+ - run : yarn nx affected --target=test --head=HEAD --ci --code-coverage --maxWorkers=2 ${AFFECTED_ARGS}
68
+
56
69
workflows :
57
70
version : 2
58
71
pr-check :
@@ -61,3 +74,6 @@ workflows:
61
74
- lint :
62
75
requires :
63
76
- install
77
+ - test :
78
+ requires :
79
+ - install
You can’t perform that action at this time.
0 commit comments