Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add caching to lychee links checker #5160

Merged
merged 8 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/links-fail-fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
dmathieu marked this conversation as resolved.
Show resolved Hide resolved

- name: Link Checker
uses: lycheeverse/lychee-action@v1.9.3
with:
fail: true
args: --max-concurrency 5 .
args: --max-concurrency 5 --cache --max-cache-age 1d .
pellared marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 9 additions & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4


- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.9.3
with:
args: --max-concurrency 5 .
args: --max-concurrency 5 --cache --max-cache-age 1d .
dmathieu marked this conversation as resolved.
Show resolved Hide resolved

- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
Expand Down