From bd6ce410bc2f1ca1f8a7f15e42a04eb4f3e481eb Mon Sep 17 00:00:00 2001 From: pheralb Date: Thu, 2 Oct 2025 16:30:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Update=20CI=20workflow?= =?UTF-8?q?=20to=20check=20SVGs=20and=20add=20data=20check=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-app.yml | 7 +++++-- package.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-app.yml b/.github/workflows/check-app.yml index 43f8909..0eae45c 100644 --- a/.github/workflows/check-app.yml +++ b/.github/workflows/check-app.yml @@ -28,9 +28,9 @@ jobs: env: PUBLIC_SVGL_VERSION: v5 - svgs-size: + check-svgs: runs-on: ubuntu-latest - name: 📦 SVGs Size + name: 📦 Check SVGs steps: - uses: actions/checkout@v4 @@ -42,3 +42,6 @@ jobs: - name: Check SVGs size run: pnpm check:size + + - name: Check unused SVGs + run: pnpm check:data diff --git a/package.json b/package.json index a745c3e..95a6abb 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:size": "tsx ./utils/check-size.ts", + "check:data": "tsx ./utils/check-data.ts", "check:links": " lychee --base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include 'https://svgl.app'", "fix:viewbox": "tsx ./utils/fix-viewbox.ts", "format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",