Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 8dd1515

Browse files
Update yarn color option
1 parent c231fc2 commit 8dd1515

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
node-version: ${{ env.NODE_VERSION }}
5353
cache: yarn
5454
- name: Install packages
55-
run: yarn install --colors=always
55+
run: YARN_ENABLE_COLORS=true yarn install
5656
- name: Build jar
5757
# unset ANDROID_HOME to prevent bazel from trying to use the Android SDK
5858
run: unset ANDROID_HOME && ./build-scripts/build-compiler.js
5959
- name: Tests
60-
run: yarn test:root --color
60+
run: YARN_ENABLE_COLORS=true yarn test:root
6161
- name: Upload contrib folder
6262
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6363
with:
@@ -122,14 +122,14 @@ jobs:
122122
name: Externs folder
123123
path: packages/google-closure-compiler/externs
124124
- name: Install packages
125-
run: yarn install --colors=always
125+
run: YARN_ENABLE_COLORS=true yarn install
126126
- name: Build image
127127
working-directory: packages/google-closure-compiler-linux
128128
run: |
129129
cp ../google-closure-compiler-java/compiler.jar compiler.jar
130130
yarn run build
131131
- name: Tests
132-
run: yarn workspaces run test --color
132+
run: YARN_ENABLE_COLORS=true yarn workspaces run test
133133
- name: Upload artifacts
134134
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
135135
with:
@@ -184,14 +184,14 @@ jobs:
184184
name: Externs folder
185185
path: packages/google-closure-compiler/externs
186186
- name: Install packages
187-
run: yarn install --colors=always
187+
run: YARN_ENABLE_COLORS=true yarn install
188188
- name: Build image
189189
working-directory: packages/google-closure-compiler-linux-arm64
190190
run: |
191191
cp ../google-closure-compiler-java/compiler.jar compiler.jar
192192
yarn run build
193193
- name: Tests
194-
run: yarn workspaces run test --color
194+
run: YARN_ENABLE_COLORS=true yarn workspaces run test
195195
- name: Upload artifacts
196196
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
197197
with:
@@ -244,14 +244,14 @@ jobs:
244244
name: Externs folder
245245
path: packages/google-closure-compiler/externs
246246
- name: Install packages
247-
run: yarn install --colors=always
247+
run: YARN_ENABLE_COLORS=true yarn install
248248
- name: Build image
249249
working-directory: packages/google-closure-compiler-macos
250250
run: |
251251
cp ../google-closure-compiler-java/compiler.jar compiler.jar
252252
yarn run build
253253
- name: Tests
254-
run: yarn workspaces run test --color
254+
run: YARN_ENABLE_COLORS=true yarn workspaces run test
255255
- name: Upload artifacts
256256
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
257257
with:
@@ -304,7 +304,7 @@ jobs:
304304
name: Externs folder
305305
path: packages/google-closure-compiler/externs
306306
- name: Install packages
307-
run: yarn install --colors=always
307+
run: YARN_ENABLE_COLORS=true yarn install
308308
- name: Build image
309309
working-directory: packages/google-closure-compiler-windows
310310
run: |
@@ -314,7 +314,7 @@ jobs:
314314
shell: cmd
315315
run: |
316316
echo "Running Tests"
317-
yarn workspaces run test --color
317+
YARN_ENABLE_COLORS=true yarn workspaces run test
318318
- name: Upload artifacts
319319
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
320320
with:
@@ -387,7 +387,7 @@ jobs:
387387
chmod 755 packages/google-closure-compiler-macos/compiler
388388
chmod 755 packages/google-closure-compiler-windows/compiler.exe
389389
- name: Install packages
390-
run: yarn install --colors=always
390+
run: YARN_ENABLE_COLORS=true yarn install
391391
- name: Prepare for publish
392392
run: ./build-scripts/add-os-restrictions.js
393393
- name: Configure yarn

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
restore-keys: |
4242
${{ runner.os }}-yarn-
4343
- name: Install packages
44-
run: yarn install --colors=always
44+
run: YARN_ENABLE_COLORS=true yarn install
4545
- name: Fetch compiler submodule tags
4646
working-directory: compiler
4747
run: git fetch --tags https://github.com/google/closure-compiler.git

0 commit comments

Comments
 (0)