From a70cdb0c4460ea9f9bda374b7d7bf2cd0c677b6b Mon Sep 17 00:00:00 2001 From: pheralb Date: Sat, 20 Apr 2024 20:29:59 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Create=20new=20workflow=20?= =?UTF-8?q?with=20``lychee``?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/{ci.yml => check-app.yml} | 7 ++++- .github/workflows/check-links.yml | 29 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) rename .github/workflows/{ci.yml => check-app.yml} (86%) create mode 100644 .github/workflows/check-links.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/check-app.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/check-app.yml index c551228..515bff9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/check-app.yml @@ -1,4 +1,4 @@ -name: 🔎 Check +name: ⚙️ Check app on: push: @@ -43,3 +43,8 @@ jobs: - name: Check svgs size run: pnpm start working-directory: ./check-size + build-app: + runs-on: ubuntu-latest + steps: + - name: Build + run: pnpm onlybuild diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..c984116 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -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"'