From 03cea766d79495ad94e6f92f2ab0d3f05482f188 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Sat, 10 Apr 2021 16:20:40 +0200 Subject: [PATCH] Small tweaks to the workflow --- .github/workflows/pull_request_check.yml | 6 +++++- .github/workflows/theme_validation.yml | 4 ++-- package.json | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml index 2b99af7..976311d 100644 --- a/.github/workflows/pull_request_check.yml +++ b/.github/workflows/pull_request_check.yml @@ -25,7 +25,11 @@ jobs: run: "echo '{\"layers\": [], \"themes\": []}' > ./assets/generated/known_layers_and_themes.json" - name: Compile license info - run: npm run validate:licenses + run: npm run generate:licenses - name: Compile and validate themes and layers run: npm run validate:layeroverview + + - name: Validate license info + run: npm run validate:licenses + diff --git a/.github/workflows/theme_validation.yml b/.github/workflows/theme_validation.yml index 944ef73..4af37cf 100644 --- a/.github/workflows/theme_validation.yml +++ b/.github/workflows/theme_validation.yml @@ -26,7 +26,7 @@ jobs: - name: Compile license info - run: npm run generate:licenses + run: npm run validate:licenses - name: Compile themes and layers - run: npm run generate:layeroverview + run: npm run validate:layeroverview diff --git a/package.json b/package.json index 3b3f470..442d319 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "generate:translations": "ts-node scripts/generateTranslations.ts", "generate:layouts": "ts-node scripts/generateLayouts.ts", "generate:docs": "ts-node scripts/generateDocs.ts", - "generate:layeroverview": "ts-node scripts/generateLayerOverview.ts", - "generate:licenses": "ts-node scripts/generateLicenseInfo.ts", + "generate:layeroverview": "ts-node scripts/generateLayerOverview.ts --no-fail", + "generate:licenses": "ts-node scripts/generateLicenseInfo.ts --no-fail", "validate:layeroverview": "ts-node scripts/generateLayerOverview.ts", "validate:licenses": "ts-node scripts/generateLicenseInfo.ts", "optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'",