mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-14 20:56:42 +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_MINIMAL ?= gcr.io/distroless/base
|
||||
|
||||
MDL ?= mdl
|
||||
|
||||
# Docker base command for working with html documentation.
|
||||
# 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
|
||||
|
@ -157,7 +155,12 @@ lint:
|
|||
golint -set_exit_status ./...
|
||||
|
||||
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 --strict deployment/helm/node-feature-discovery/
|
||||
|
|
|
@ -2,6 +2,5 @@
|
|||
|
||||
# Install mdl
|
||||
gem install mdl -v 0.11.0
|
||||
|
||||
# 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