Fix GH Actions
This commit is contained in:
parent
1bcb9c73b3
commit
99a618a52c
1 changed files with 13 additions and 4 deletions
|
@ -94,13 +94,22 @@ for (const themeFile of themeFiles) {
|
||||||
console.error("Unknown layer id: ", layer)
|
console.error("Unknown layer id: ", layer)
|
||||||
themeErrorCount++
|
themeErrorCount++
|
||||||
}
|
}
|
||||||
} else if (layer.builtin === undefined) {
|
} else {
|
||||||
// layer.builtin contains layer overrides - we can skip those
|
if (layer.builtin !== undefined) {
|
||||||
layerErrorCount += validateLayer(layer, themeFile.id)
|
if (!knownLayerIds.has(layer.builtin)) {
|
||||||
|
console.error("Unknown layer id: ", layer.builtin, "(which uses inheritance)")
|
||||||
|
themeErrorCount++
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// layer.builtin contains layer overrides - we can skip those
|
||||||
|
layerErrorCount += validateLayer(layer, themeFile.id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
themeFile.layers = themeFile.layers.filter(l => typeof l != "string")
|
themeFile.layers = themeFile.layers
|
||||||
|
.filter(l => typeof l != "string") // We remove all the builtin layer references as they don't work with ts-node for some weird reason
|
||||||
|
.filter(l => l.builtin === undefined)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const theme = new LayoutConfig(themeFile, true, "test")
|
const theme = new LayoutConfig(themeFile, true, "test")
|
||||||
|
|
Loading…
Reference in a new issue