Fix GH Actions

This commit is contained in:
pietervdvn 2021-04-10 15:53:47 +02:00
parent 1bcb9c73b3
commit 99a618a52c

View file

@ -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 {
if (layer.builtin !== undefined) {
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 // layer.builtin contains layer overrides - we can skip those
layerErrorCount += validateLayer(layer, themeFile.id) 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")