File tree Expand file tree Collapse file tree 4 files changed +20
-8
lines changed
packages/mercury/src/cli/internal Expand file tree Collapse file tree 4 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1919 description : " Use cache node modules"
2020 required : false
2121 type : boolean
22- tests :
22+ common- tests :
2323 description : " Screenshot tests for the design system"
2424 required : false
2525 type : boolean
5858
5959 # Validate the common package, only for Mercury
6060 - name : validate (common package)
61- if : ${{ inputs.tests == true }}
61+ if : ${{ inputs.common- tests == true }}
6262 run : yarn test.common.ci
6363
6464 - name : validate
Original file line number Diff line number Diff line change 1212 with :
1313 node-version : " 20.x"
1414 cache : true
15- tests : false
15+ common- tests : false
1616 publish : false
1717 package : " packages/unanimo"
1818
2121 with :
2222 node-version : " 20.x"
2323 cache : true
24- tests : true
24+ common- tests : false
2525 publish : false
2626 package : " packages/mercury"
2727
3030 with :
3131 node-version : " 20.x"
3232 cache : true
33- tests : false
33+ common- tests : false
3434 publish : false
3535 package : " packages/svg-sass-generator"
Original file line number Diff line number Diff line change 8686 with :
8787 node-version : " 20.x"
8888 cache : false
89- tests : false
89+ common- tests : false
9090 publish : true
9191 package : " packages/unanimo"
9292 secrets : inherit
9898 with :
9999 node-version : " 20.x"
100100 cache : false
101- tests : true
101+ common- tests : false
102102 publish : true
103103 package : " packages/mercury"
104104 secrets : inherit
@@ -110,7 +110,7 @@ jobs:
110110 with :
111111 node-version : " 20.x"
112112 cache : false
113- tests : false
113+ common- tests : false
114114 publish : true
115115 package : " packages/svg-sass-generator"
116116 secrets : inherit
Original file line number Diff line number Diff line change @@ -23,12 +23,19 @@ const progressDictionary = {
2323let lastRebuildInterval : NodeJS . Timeout ;
2424let updateCounter = 0 ;
2525
26+ const { isTTY } = process . stdout ;
27+
2628const readLineInterface = readline . createInterface ( {
2729 input : process . stdin ,
2830 output : process . stdout
2931} ) ;
3032
3133export const printRebuilding = ( firstBuild : boolean ) => {
34+ // process.stdout doesn't work on the CI
35+ if ( ! isTTY ) {
36+ return ;
37+ }
38+
3239 // Hide the cursor to improve the CLI design
3340 readLineInterface . write ( "\u001B[?25l" ) ;
3441
@@ -52,6 +59,11 @@ export const printRebuilding = (firstBuild: boolean) => {
5259} ;
5360
5461export const stopRebuildingStdout = ( ) => {
62+ // process.stdout doesn't work on the CI
63+ if ( ! isTTY ) {
64+ return ;
65+ }
66+
5567 clearInterval ( lastRebuildInterval ) ;
5668 process . stdout . clearLine ( 0 ) ;
5769 console . log ( "" ) ;
You can’t perform that action at this time.
0 commit comments