mirror of
https://github.com/BreizhHardware/awesome-selfhosted-data.git
synced 2026-01-18 16:17:30 +01:00
tools: github actions: always run URL checks last in all workflows
- make errors fatal/exit with code 1 if any checks are unsuccessful
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -10,6 +10,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: make url_check
|
||||
- run: make awesome_lint
|
||||
- run: make export
|
||||
- run: make url_check
|
||||
|
||||
@@ -12,5 +12,6 @@ steps:
|
||||
- source_code_url
|
||||
- website_url
|
||||
- demo_url
|
||||
errors_are_fatal: True
|
||||
exclude_regex:
|
||||
- '^https://github.com/[\w\.\-]+/[\w\.\-]+$' # don't check URLs that will be processed by the github_metadata module
|
||||
|
||||
10
Makefile
10
Makefile
@@ -22,11 +22,6 @@ 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 && \
|
||||
@@ -39,6 +34,11 @@ export: install
|
||||
hecat --config .hecat/export.yml
|
||||
cd awesome-selfhosted && git diff --color=always
|
||||
|
||||
.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: help # generate list of targets with descriptions
|
||||
help:
|
||||
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|
||||
|
||||
Reference in New Issue
Block a user