diff --git a/.github/workflows/check-links.yaml b/.github/workflows/check-links.yaml deleted file mode 100644 index 648e7558e..000000000 --- a/.github/workflows/check-links.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Check Markdown links - -on: - workflow_dispatch: - -jobs: - markdown-link-check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 - with: - use-quiet-mode: 'yes' - use-verbose-mode: 'no' - config-file: 'mlc_config.json' - folder-path: 'en' diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml new file mode 100644 index 000000000..67c6ba493 --- /dev/null +++ b/.github/workflows/checks.yaml @@ -0,0 +1,40 @@ +name: Checks +on: + push: + pull_request: + schedule: + # 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) + - cron: "0 9 1 * *" + workflow_dispatch: +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v4 + with: + show-progress: '' + - name: markdownlint-cli2-action + uses: DavidAnson/markdownlint-cli2-action@v9 + with: + globs: | + **/*.md + #node_modules + lychee: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + show-progress: 'false' + - 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@v2.0.2 + with: + fail: true + args: --accept '200,201,202,203,204,403,429,500' --max-concurrency 1 --cache --no-progress --exclude-all-private './**/*.md' diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index 15afed758..000000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Lint -on: - push: - branches: - - main - pull_request: - workflow_dispatch: -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Set up Git repository - uses: actions/checkout@v4 - with: - show-progress: '' - - name: markdownlint-cli2-action - uses: DavidAnson/markdownlint-cli2-action@v9 - with: - globs: | - **/*.md - #node_modules diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 000000000..1e0316e2d --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,16 @@ +https://arxiv.org/ +https://chrome.google.com/ +https://contribute.jabref.org/ +https://donations.jabref.org/ +https://pubs.acs.org/ +https://scholar.archive.org/ +https://web.archive.org/ +https://www.researchgate.net/privacy-policy +https://www.sciencedirect.com/ + +https://github.com/koppor/jabref/issue +https://github.com/koppor/jabref/pull +https://github.com/JabRef/jabref/issue +https://github.com/JabRef/jabref/pull + +0005-example.md diff --git a/mlc_config.json b/mlc_config.json deleted file mode 100644 index 3c775a554..000000000 --- a/mlc_config.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^https://.*\\.crossref\\.org" - }, - { - "pattern": "^https://.*\\.github\\.com" - }, - { - "pattern": "^https://dl\\.acm\\.org" - }, - { - "pattern": "^http://purl\\.org/net/bibteXMP" - }, - { - "pattern": "^https://.*\\.jabref\\.org" - }, - { - "pattern": "\\.tex\\.ac\\.uk/" - }, - { - "pattern": "gitignore\\.io" - }, - { - "pattern": "en\\.wikipedia\\.org" - }, - { - "pattern": "^https://web.archive.org/" - } - ] -}