mirror of
https://github.com/davidgasquez/awesome-duckdb.git
synced 2026-11-07 03:20:27 +00:00
Add GitHub CI action to run linkchecker
This commit is contained in:
1 parent
057b6ec9b7
commit
bbf1e365ac
4 files changed
+78
-12
No files matched your search
@@ -0,0 +1,31 @@
|
||||
name: Check links in the README
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
LinkChecker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: pandoc
|
||||
|
||||
- name: Convert Markdown to HTML format
|
||||
run: pandoc README.md --standalone --output README.html
|
||||
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- run: pip install linkchecker --user
|
||||
|
||||
- name: Link Checker
|
||||
run: linkchecker README.html --config .github/linkchecker/linkchecker.conf --file-output html/utf-8/report.html
|
||||
|
||||
- run: cat report.html >> ${GITHUB_STEP_SUMMARY}
|
||||
if: success() || failure()
|
||||
@@ -1,12 +0,0 @@
|
||||
name: lint
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: npx awesome-lint
|
||||
Reference in new issue
Block a user