Skip to content

Commit 172d346

Browse files
authored
fix(core): safe important check (#10455)
1 parent 4b74b96 commit 172d346

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/apps_automated.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121

2222
- uses: actions/setup-node@v3
2323
with:
24-
node-version: 18
24+
node-version: 20.10.0
2525

2626
- uses: actions/setup-java@v3
2727
with:
2828
distribution: 'temurin'
29-
java-version: '11'
29+
java-version: '17'
3030

3131
- name: Install Python
3232
uses: actions/setup-python@v4
@@ -49,6 +49,8 @@ jobs:
4949

5050
- name: Create Emulator
5151
uses: rigor789/action-create-emulator@main
52+
with:
53+
package: system-images;android-34;default;x86_64
5254

5355
- name: Test (Android)
5456
run: node tools/scripts/run-automated.js android

packages/core/ui/styling/css-utils.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import { Trace } from '../../trace';
22
import { CoreTypes } from '../../core-types';
33
import { Length } from './style-properties';
44

5-
export function cleanupImportantFlags(value: string, propertyName: string) {
5+
export function cleanupImportantFlags(value: unknown, propertyName: string) {
6+
if (typeof value !== 'string') {
7+
return '' + value;
8+
}
9+
610
const index = value?.indexOf('!important');
711
if (index >= 0) {
812
if (Trace.isEnabled()) {

tools/scripts/run-automated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const spawn = require('child_process').spawn
88
const kill = require('tree-kill');
99
const path = require('path');
1010

11-
const TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
11+
const TIMEOUT_MS = 20 * 60 * 1000; // 20 minutes (is Github CI this slow to boot AVDs?)
1212
const workspaceDir = path.resolve(__dirname, '../..');
1313
const platform = process.argv[2];
1414
const spawned_process = spawn(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy