mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Update CI workflow to check SVGs and add data check script
This commit is contained in:
@@ -28,9 +28,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PUBLIC_SVGL_VERSION: v5
|
PUBLIC_SVGL_VERSION: v5
|
||||||
|
|
||||||
svgs-size:
|
check-svgs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: 📦 SVGs Size
|
name: 📦 Check SVGs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -42,3 +42,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Check SVGs size
|
- name: Check SVGs size
|
||||||
run: pnpm check:size
|
run: pnpm check:size
|
||||||
|
|
||||||
|
- name: Check unused SVGs
|
||||||
|
run: pnpm check:data
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
"check:size": "tsx ./utils/check-size.ts",
|
"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'",
|
"check:links": " lychee --base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include 'https://svgl.app'",
|
||||||
"fix:viewbox": "tsx ./utils/fix-viewbox.ts",
|
"fix:viewbox": "tsx ./utils/fix-viewbox.ts",
|
||||||
"format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",
|
"format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",
|
||||||
|
|||||||
Reference in New Issue
Block a user