mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 04:57:56 +00:00
Run local markdown tests inside an isolated container
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
This commit is contained in:
parent
778c897345
commit
1e3bfcc77d
2 changed files with 7 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -12,8 +12,6 @@ BUILDER_IMAGE ?= golang:1.18-buster
|
||||||
BASE_IMAGE_FULL ?= debian:buster-slim
|
BASE_IMAGE_FULL ?= debian:buster-slim
|
||||||
BASE_IMAGE_MINIMAL ?= gcr.io/distroless/base
|
BASE_IMAGE_MINIMAL ?= gcr.io/distroless/base
|
||||||
|
|
||||||
MDL ?= mdl
|
|
||||||
|
|
||||||
# Docker base command for working with html documentation.
|
# Docker base command for working with html documentation.
|
||||||
# Use host networking because 'jekyll serve' is stupid enough to use the
|
# Use host networking because 'jekyll serve' is stupid enough to use the
|
||||||
# same site url than the "host" it binds to. Thus, all the links will be
|
# same site url than the "host" it binds to. Thus, all the links will be
|
||||||
|
@ -157,7 +155,12 @@ lint:
|
||||||
golint -set_exit_status ./...
|
golint -set_exit_status ./...
|
||||||
|
|
||||||
mdlint:
|
mdlint:
|
||||||
find docs/ -path docs/vendor -prune -false -o -name '*.md' | xargs $(MDL) -s docs/mdl-style.rb
|
${CONTAINER_RUN_CMD} \
|
||||||
|
--rm \
|
||||||
|
--volume "${PWD}:/workdir:ro,z" \
|
||||||
|
--workdir /workdir \
|
||||||
|
ruby:slim \
|
||||||
|
/workdir/scripts/test-infra/mdlint.sh
|
||||||
|
|
||||||
helm-lint:
|
helm-lint:
|
||||||
helm lint --strict deployment/helm/node-feature-discovery/
|
helm lint --strict deployment/helm/node-feature-discovery/
|
||||||
|
|
|
@ -2,6 +2,5 @@
|
||||||
|
|
||||||
# Install mdl
|
# Install mdl
|
||||||
gem install mdl -v 0.11.0
|
gem install mdl -v 0.11.0
|
||||||
|
|
||||||
# Run verify steps
|
# Run verify steps
|
||||||
make mdlint
|
find docs/ -path docs/vendor -prune -false -o -name '*.md' | xargs mdl -s docs/mdl-style.rb
|
||||||
|
|
Loading…
Add table
Reference in a new issue