mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +08:00
⚙️ Create new workflow with `lychee
`
This commit is contained in:
parent
78a344d9e5
commit
a70cdb0c44
@ -1,4 +1,4 @@
|
|||||||
name: 🔎 Check
|
name: ⚙️ Check app
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -43,3 +43,8 @@ jobs:
|
|||||||
- name: Check svgs size
|
- name: Check svgs size
|
||||||
run: pnpm start
|
run: pnpm start
|
||||||
working-directory: ./check-size
|
working-directory: ./check-size
|
||||||
|
build-app:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Build
|
||||||
|
run: pnpm onlybuild
|
29
.github/workflows/check-links.yml
vendored
Normal file
29
.github/workflows/check-links.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: 🔎 Check links
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linkChecker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore lychee cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: .lycheecache
|
||||||
|
key: cache-lychee-${{ github.sha }}
|
||||||
|
restore-keys: cache-lychee-
|
||||||
|
|
||||||
|
- name: CDN
|
||||||
|
id: lychee
|
||||||
|
uses: lycheeverse/lychee-action@v1.9.3
|
||||||
|
with:
|
||||||
|
fail: true
|
||||||
|
args: '--base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include "https://cdn.svgl.app"'
|
Loading…
Reference in New Issue
Block a user