Skip to content

Commit b547eb6

Browse files
authored
Try to fix CI again (#598)
* Try to fix CI again * Update watch-fs.ts * Update watch-fs.ts * Skip common tests in the CI
1 parent 8fea035 commit b547eb6

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/install-and-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
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
@@ -58,7 +58,7 @@ jobs:
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

.github/workflows/node.js.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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

@@ -21,7 +21,7 @@ jobs:
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

@@ -30,6 +30,6 @@ jobs:
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"

.github/workflows/npmpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
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
@@ -98,7 +98,7 @@ jobs:
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

packages/mercury/src/cli/internal/watch-fs.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,19 @@ const progressDictionary = {
2323
let lastRebuildInterval: NodeJS.Timeout;
2424
let updateCounter = 0;
2525

26+
const { isTTY } = process.stdout;
27+
2628
const readLineInterface = readline.createInterface({
2729
input: process.stdin,
2830
output: process.stdout
2931
});
3032

3133
export 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

5461
export 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("");

0 commit comments

Comments
 (0)