diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml index a5c3a50..fa57854 100644 --- a/.github/workflows/link_check.yml +++ b/.github/workflows/link_check.yml @@ -1,27 +1,27 @@ -# This action checks for broken links -name: Check Links +name: Check for broken links on: push: pull_request: schedule: - - cron: "00 00 * * *" + # Runs weekly on Monday at 00:00 + - cron: "0 0 * * 1" jobs: linkChecker: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - - name: Restore lychee cache - uses: actions/cache@v5 - with: - path: .lycheecache - key: cache-lychee-${{ github.sha }} - restore-keys: cache-lychee- - - name: 🔗 Check Links uses: lycheeverse/lychee-action@v2 with: - jobSummary: true - args: --base-url "$(pwd)" --cache --max-cache-age 1d --config .github/workflows/lychee.toml './**/*.md' + lycheeVersion: latest + format: markdown + args: > + --base https://pestphp.com + --user-agent "Mozilla 5.0" + --exclude "https?://(www\.)?(twitter\.com|instagram\.com|linkedin\.com|gnu\.org)" + --max-retries 5 + --verbose + --no-progress + "**/*.md" diff --git a/.github/workflows/lychee.toml b/.github/workflows/lychee.toml deleted file mode 100644 index d6908ac..0000000 --- a/.github/workflows/lychee.toml +++ /dev/null @@ -1,121 +0,0 @@ -############################# Display ############################# - -# Verbose program output -# Accepts log level: "error", "warn", "info", "debug", "trace" -#verbose = "warn" - -# Don't show interactive progress bar while checking links. -no_progress = false - -# Path to summary output file. -output = ".github/link_report.md" - -############################# Cache ############################### - -# Enable link caching. This can be helpful to avoid checking the same links on -# multiple runs. -cache = true - -# Discard all cached requests older than this duration. -max_cache_age = "1d" - -############################# Runtime ############################# - -# Number of threads to utilize. -# Defaults to number of cores available to the system if omitted. -threads = 2 - -# Maximum number of allowed redirects. -max_redirects = 10 - -# Maximum number of allowed retries before a link is declared dead. -max_retries = 2 - -# Maximum number of concurrent link checks. -max_concurrency = 14 - -############################# Requests ############################ - -# User agent to send with each request. -user_agent = "curl/7.83. 1" - -# Website timeout from connect to response finished. -timeout = 20 - -# Minimum wait time in seconds between retries of failed requests. -retry_wait_time = 2 - -# Comma-separated list of accepted status codes for valid links. -accept = [200, 429] - -# Proceed for server connections considered insecure (invalid TLS). -insecure = false - -# Only test links with the given schemes (e.g. https). -# Omit to check links with any scheme. -scheme = [ "https" ] - -# When links are available using HTTPS, treat HTTP links as errors. -require_https = false - -# Request method -method = "get" - -# Custom request headers -headers = [] - -# Remap URI matching pattern to different URI. -remap = [ "https://example.com http://example.invalid" ] - -# Base URL or website root directory to check relative URLs. -#base = "https://pestphp.com" - -# HTTP basic auth support. This will be the username and password passed to the -# authorization HTTP header. See -# -#basic_auth = ["example.com user:pwd"] - -############################# Exclusions ########################## - -# Skip missing input files (default is to error if they don't exist). -skip_missing = false - -# Check links inside `` and `
` blocks as well as Markdown code
-# blocks.
-include_verbatim = false
-
-# Ignore case of paths when matching glob patterns.
-glob_ignore_case = false
-
-# Exclude URLs and mail addresses from checking (supports regex).
-# receiving forbidden but valid link, receiving timeout but valid link
-exclude = [
-    'https://opensource.org/licenses/MIT',
-    'https://twitter.com/pestphp',
-    '^https://laracasts.com/series/(pest-driven-laravel|pest-from-scratch)$',
-    '^https://www.linkedin.com/learning/.*$',
-]
-
-# Exclude these filesystem paths from getting checked.
-#exclude_path = ["file/path/to/Ignore", "./other/file/path/to/Ignore"]
-
-# URLs to check (supports regex). Has preference over all excludes.
-#include = [ 'gist\.github\.com.*' ]
-
-# Exclude all private IPs from checking.
-# Equivalent to setting `exclude_private`, `exclude_link_local`, and
-# `exclude_loopback` to true.
-exclude_all_private = false
-
-# Exclude private IP address ranges from checking.
-exclude_private = false
-
-# Exclude link-local IP address range from checking.
-exclude_link_local = false
-
-# Exclude loopback IP address range and localhost from checking.
-exclude_loopback = false
-
-# Exclude all mail addresses from checking.
-exclude_mail = false
-
diff --git a/browser-testing.md b/browser-testing.md
index e3f8faa..39df0f4 100644
--- a/browser-testing.md
+++ b/browser-testing.md
@@ -1203,7 +1203,7 @@ Sometimes you may want to debug your browser tests. Pest provides a convenient w
 ./vendor/bin/pest --debug
 ```
 
-Optionally, you can also use the `debug()` method in your test. It will limit execution to this test (like using [`only()`](filtering-tests.md#only)), pause the execution and open the browser window:
+Optionally, you can also use the `debug()` method in your test. It will limit execution to this test (like using [`only()`](/docs/filtering-tests#only)), pause the execution and open the browser window:
 
 ```php
 $page->debug();