From cc477f3cc3d75e9fa9f9ac3f4b6bc620bf7dc7ee Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Fri, 2 Aug 2024 09:59:57 +0200 Subject: [PATCH] ci: add link checker action (#1737) use lychee instead --- .github/workflows/links.yml | 3 ++- .github/workflows/pull_request.yml | 22 ---------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 7dd8398c0..afbbbc3db 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -14,4 +14,5 @@ jobs: id: lychee uses: lycheeverse/lychee-action@v1 with: - args: -vv https://microlink.io + args: -vv https://microlink.io --exclude fonts.gstatic.com --exclude fonts.googleapis.com + fail: true diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0daf5226a..87ce1a863 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -49,25 +49,3 @@ jobs: run: | pnpm install react react-dom next ./node_modules/.bin/next lint - - urlint: - if: github.ref != 'refs/heads/master' - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: lts/* - - name: Setup PNPM - uses: pnpm/action-setup@v4 - with: - version: latest - run_install: false - - name: Lint - run: | - pnpm install urlint - ./node_modules/.bin/urlint https://microlink.io/sitemap.xml