chore(ci): execute markdown-link-check as npm module
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
631bd72480
commit
489c616e9a
15
.drone.yml
15
.drone.yml
@ -23,19 +23,21 @@ steps:
|
|||||||
cpu: 150
|
cpu: 150
|
||||||
memory: 150M
|
memory: 150M
|
||||||
|
|
||||||
- name: markdown lint
|
- name: markdown link checker
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- npm install
|
||||||
image: git.cryptic.systems/volker.raschek/markdownlint:0.42.0
|
- npm run readme:link
|
||||||
|
image: docker.io/library/node:23.3.0-alpine
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
memory: 150M
|
memory: 150M
|
||||||
|
|
||||||
- name: markdown link check
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- "*.md"
|
- npm install
|
||||||
image: ghcr.io/tcort/markdown-link-check:3.12.2
|
- npm run readme:lint
|
||||||
|
image: docker.io/library/node:23.3.0-alpine
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 150
|
cpu: 150
|
||||||
@ -140,7 +142,6 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run readme:parameters
|
- npm run readme:parameters
|
||||||
- npm run readme:lint
|
|
||||||
image: docker.io/library/node:23.3.0-alpine
|
image: docker.io/library/node:23.3.0-alpine
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
|
24
Makefile
24
Makefile
@ -24,16 +24,34 @@ NODE_IMAGE_FULLY_QUALIFIED=${NODE_IMAGE_REGISTRY_HOST}/${NODE_IMAGE_REPOSITORY}:
|
|||||||
missing-dot:
|
missing-dot:
|
||||||
grep --perl-regexp '## @(param|skip).*[^.]$$' values.yaml
|
grep --perl-regexp '## @(param|skip).*[^.]$$' values.yaml
|
||||||
|
|
||||||
# CONTAINER RUN - PREPARE ENVIRONMENT
|
# CONTAINER RUN - README
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
PHONY+=container-run/readme
|
PHONY+=container-run/readme
|
||||||
container-run/readme:
|
container-run/readme: container-run/readme/link container-run/readme/lint container-run/readme/parameters
|
||||||
|
|
||||||
|
container-run/readme/link:
|
||||||
${CONTAINER_RUNTIME} run \
|
${CONTAINER_RUNTIME} run \
|
||||||
--rm \
|
--rm \
|
||||||
--volume $(shell pwd):$(shell pwd) \
|
--volume $(shell pwd):$(shell pwd) \
|
||||||
--workdir $(shell pwd) \
|
--workdir $(shell pwd) \
|
||||||
${NODE_IMAGE_FULLY_QUALIFIED} \
|
${NODE_IMAGE_FULLY_QUALIFIED} \
|
||||||
npm install && npm run readme:parameters && npm run readme:lint
|
npm install && npm run readme:link
|
||||||
|
|
||||||
|
container-run/readme/lint:
|
||||||
|
${CONTAINER_RUNTIME} run \
|
||||||
|
--rm \
|
||||||
|
--volume $(shell pwd):$(shell pwd) \
|
||||||
|
--workdir $(shell pwd) \
|
||||||
|
${NODE_IMAGE_FULLY_QUALIFIED} \
|
||||||
|
npm install && npm run readme:lint
|
||||||
|
|
||||||
|
container-run/readme/parameters:
|
||||||
|
${CONTAINER_RUNTIME} run \
|
||||||
|
--rm \
|
||||||
|
--volume $(shell pwd):$(shell pwd) \
|
||||||
|
--workdir $(shell pwd) \
|
||||||
|
${NODE_IMAGE_FULLY_QUALIFIED} \
|
||||||
|
npm install && npm run readme:parameters
|
||||||
|
|
||||||
# CONTAINER RUN - HELM UNITTESTS
|
# CONTAINER RUN - HELM UNITTESTS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
976
package-lock.json
generated
976
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "qu-seed-chart",
|
"name": "prometheus-postgres-exporter",
|
||||||
"homepage": "https://github.com/dedalus-cis4u/qu-seed-chart.git",
|
"homepage": "https://git.cryptic.systems/volker.raschek/prometheus-postgres-exporter.git",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
"engineStrict": true,
|
"engineStrict": true,
|
||||||
@ -9,11 +9,13 @@
|
|||||||
"npm": ">=8.0.0"
|
"npm": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"readme:link": "markdown-link-check *.md",
|
||||||
"readme:lint": "markdownlint *.md -f",
|
"readme:lint": "markdownlint *.md -f",
|
||||||
"readme:parameters": "readme-generator -v values.yaml -r README.md"
|
"readme:parameters": "readme-generator -v values.yaml -r README.md"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
"@bitnami/readme-generator-for-helm": "^2.5.0",
|
||||||
|
"markdown-link-check": "^3.13.6",
|
||||||
"markdownlint-cli": "^0.43.0"
|
"markdownlint-cli": "^0.43.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user