Skip to content

Commit 8ae6975

Browse files
authored
Send fewer requests with link checking (#1122)
1 parent e15e516 commit 8ae6975

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,19 @@ jobs:
1717
- macos
1818
- windows
1919
steps:
20+
- uses: actions/cache@v4
21+
with:
22+
path: .lycheecache
23+
key: cache-lychee-${{ github.sha }}
24+
restore-keys: cache-lychee-
2025
- uses: actions/checkout@v4
2126
- uses: actions/setup-node@v4
2227
with:
2328
node-version: ${{ matrix.node-version }}
2429
- run: npm install
2530
- uses: lycheeverse/lychee-action@v1
2631
with:
27-
args: --verbose --no-progress --include-fragments --max-concurrency 10 --exclude linkedin --exclude file:///test --exclude invalid.com '*.md' 'docs/*.md' '.github/**/*.md' '*.json' '*.js' 'lib/**/*.js' 'test/**/*.js' '*.ts' 'test-d/**/*.ts'
32+
args: --cache --verbose --no-progress --include-fragments --exclude linkedin --exclude file:///test --exclude invalid.com '*.md' 'docs/*.md' '.github/**/*.md' '*.json' '*.js' 'lib/**/*.js' 'test/**/*.js' '*.ts' 'test-d/**/*.ts'
2833
fail: true
2934
if: ${{ matrix.os == 'ubuntu' && matrix.node-version == 22 }}
3035
- run: npm run lint

0 commit comments

Comments
 (0)