This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree 3 files changed +15
-8
lines changed 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 45
45
command : yarn prettier
46
46
- run :
47
47
name : Unit Tests
48
- command : yarn test --maxWorkers=2
48
+ command : yarn test
49
49
- run :
50
50
name : Report coverage
51
51
command : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -10,14 +10,17 @@ trigger: [master]
10
10
pool :
11
11
vmImage : ' ubuntu-latest'
12
12
13
- steps :
14
- - task : ComponentGovernanceComponentDetection@0
15
- inputs :
16
- scanType : ' Register'
17
- verbosity : ' Verbose'
18
- alertWarningLevel : ' High'
19
- displayName : Component governance registration
13
+ variables :
14
+ # emulate circleci method of detecting whether build is running in CI or local
15
+ CI : 1
20
16
17
+ steps :
18
+ - task : ComponentGovernanceComponentDetection@0
19
+ inputs :
20
+ scanType : ' Register'
21
+ verbosity : ' Verbose'
22
+ alertWarningLevel : ' High'
23
+ displayName : Component governance registration
21
24
# Rest of build is not being used for now, but leaving setup for reference
22
25
23
26
# - task: NodeTool@0
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ const jestConfigFromArgv: Partial<JestPluginConfig> = {
18
18
testFilePattern : argv . testFilePattern as string ,
19
19
}
20
20
21
+ if ( process . env . CI ) {
22
+ jestConfigFromArgv . maxWorkers = 2
23
+ }
24
+
21
25
task (
22
26
'test:jest:setup' ,
23
27
parallel ( 'build:docs:component-info' , 'build:docs:component-menu-behaviors' ) ,
You can’t perform that action at this time.
0 commit comments