From 3ab4522d83e9e25fb135dda5ff4ee0bdc2c92bbd Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Mon, 1 Apr 2024 14:14:20 -0700 Subject: [PATCH] add lychee action --- .github/workflows/build-site.yml | 8 ++++++++ .lycheeignore | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 .lycheeignore diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml index 41feae7a..dc0e0b3b 100644 --- a/.github/workflows/build-site.yml +++ b/.github/workflows/build-site.yml @@ -53,6 +53,14 @@ jobs: path: tmp/.htmlproofer key: ${{ runner.os }}-htmlproofer + - name: Check links with lychee + id: lychee + uses: lycheeverse/lychee-action@v1.9.0 + with: + args: --verbose --no-progress _site/**/*.html + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Run htmlproofer run: | ruby scripts/htmlproofer.rb diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 00000000..53c47fd3 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,6 @@ +https://github.com/* +https://fonts.googleapis.com/* +https://fonts.gstatic.com/* +https://www.linkedin.com/* +https://www.youtube-nocookie.com/* +https://t.co/*