tools: github actions: add automatic URL checks using hecat/url_check module

This commit is contained in:
nodiscc 2023-01-24 16:55:46 +01:00
parent 8db83e4fd0
commit 28005c507e
No known key found for this signature in database
GPG key ID: 067FC4266A4B6909
4 changed files with 23 additions and 0 deletions

View file

@ -9,5 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make url_check
- run: make awesome_lint
- run: make export

View file

@ -11,6 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: make update_metadata
- run: make url_check
- run: make awesome_lint
- run: make export
- name: commit and push changes

16
.hecat/url-check.yml Normal file
View file

@ -0,0 +1,16 @@
steps:
- name: check URLs
module: processors/url_check
module_options:
source_directories:
- software
- tags
source_files:
- licenses.yml
check_keys:
- url
- source_code_url
- website_url
- demo_url
exclude_regex:
- '^https://github.com/[\w\.\-]+/[\w\.\-]+$' # don't check URLs that will be processed by the github_metadata module

View file

@ -22,6 +22,11 @@ update_metadata: install
source .venv/bin/activate && \
hecat --config .hecat/update-metadata.yml
.PHONY: url_check # check URLs for dead links or other connection problems
url_check: install
source .venv/bin/activate && \
hecat --config .hecat/url-check.yml
.PHONY: awesome_lint # check data against awesome-selfhosted guidelines
awesome_lint: install
source .venv/bin/activate && \