Skip to content

Commit 730dc64

Browse files
authored
Switch link checker to lychee (and let it run more often) (#532)
1 parent 5f1f6d5 commit 730dc64

File tree

5 files changed

+56
-68
lines changed

5 files changed

+56
-68
lines changed

.github/workflows/check-links.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/checks.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Checks
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
# Run on the first of each month at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
7+
- cron: "0 9 1 * *"
8+
workflow_dispatch:
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Git repository
14+
uses: actions/checkout@v4
15+
with:
16+
show-progress: ''
17+
- name: markdownlint-cli2-action
18+
uses: DavidAnson/markdownlint-cli2-action@v9
19+
with:
20+
globs: |
21+
**/*.md
22+
#node_modules
23+
lychee:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
show-progress: 'false'
29+
- name: Restore lychee cache
30+
uses: actions/cache@v4
31+
with:
32+
path: .lycheecache
33+
key: cache-lychee-${{ github.sha }}
34+
restore-keys: cache-lychee-
35+
- name: Link Checker
36+
id: lychee
37+
uses: lycheeverse/[email protected]
38+
with:
39+
fail: true
40+
args: --accept '200,201,202,203,204,403,429,500' --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md'

.github/workflows/lint.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.lycheeignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
https://arxiv.org/
2+
https://chrome.google.com/
3+
https://contribute.jabref.org/
4+
https://donations.jabref.org/
5+
https://pubs.acs.org/
6+
https://scholar.archive.org/
7+
https://web.archive.org/
8+
https://www.researchgate.net/privacy-policy
9+
https://www.sciencedirect.com/
10+
11+
https://github.com/koppor/jabref/issue
12+
https://github.com/koppor/jabref/pull
13+
https://github.com/JabRef/jabref/issue
14+
https://github.com/JabRef/jabref/pull
15+
16+
0005-example.md

mlc_config.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)