44all : info docker test # # Run all targets.
55
66.PHONY : test
7- test : info validate-container-image-labels docker-build-check test-lib inspec lint-codebase test-default-config-files test-actions-runner-debug test-actions-steps-debug test-runner-debug test-find lint-subset-files test-custom-ssl-cert test-non-default-workdir test-git-flags test-non-default-home-directory test-git-initial-commit test-log-level test-use-find-and-ignore-gitignored-files test-linters-expect-failure-log-level-notice test-bash-exec-library-expect-success test-bash-exec-library-expect-failure test-save-super-linter-output test-save-super-linter-output-custom-path test-linters # # Run the test suite
7+ test : info validate-container-image-labels docker-build-check docker-dev-container-build-check test-lib inspec lint-codebase test-default-config-files test-actions-runner-debug test-actions-steps-debug test-runner-debug test-find lint-subset-files test-custom-ssl-cert test-non-default-workdir test-git-flags test-non-default-home-directory test-git-initial-commit test-log-level test-use-find-and-ignore-gitignored-files test-linters-expect-failure-log-level-notice test-bash-exec-library-expect-success test-bash-exec-library-expect-failure test-save-super-linter-output test-save-super-linter-output-custom-path test-linters # # Run the test suite
88
99# if this session isn't interactive, then we don't want to allocate a
1010# TTY, which would fail, but if it is interactive, we do want to attach
@@ -119,7 +119,7 @@ inspec: inspec-check ## Run InSpec tests
119119 && docker kill $(SUPER_LINTER_TEST_CONTAINER_NAME )
120120
121121.PHONY : docker
122- docker : check-github-token # # Build the container image
122+ docker : docker-build-check check-github-token # # Build the container image
123123 DOCKER_BUILDKIT=1 docker buildx build --load \
124124 --build-arg BUILD_DATE=$(BUILD_DATE ) \
125125 --build-arg BUILD_REVISION=$(BUILD_REVISION ) \
@@ -128,7 +128,7 @@ docker: check-github-token ## Build the container image
128128 --target $(IMAGE ) \
129129 -t $(SUPER_LINTER_TEST_CONTAINER_URL ) .
130130
131- .PHONY : docker-build-check # # Run Docker build checks
131+ .PHONY : docker-build-check # # Run Docker build checks against the Super-linter image
132132docker-build-check :
133133 DOCKER_BUILDKIT=1 docker buildx build --check \
134134 .
@@ -418,8 +418,13 @@ test-save-super-linter-output-custom-path: ## Run super-linter with SAVE_SUPER_L
418418 $(SUPER_LINTER_TEST_CONTAINER_URL ) \
419419 " run_test_cases_save_super_linter_output_custom_path"
420420
421+ .PHONY : docker-dev-container-build-check # # Run Docker build checks against the dev-container image
422+ docker-dev-container-build-check :
423+ DOCKER_BUILDKIT=1 docker buildx build --check \
424+ " ${CURDIR} /dev-dependencies"
425+
421426.PHONY : build-dev-container-image
422- build-dev-container-image : # # Build commit linter container image
427+ build-dev-container-image : docker-dev-container-build-check # # Build commit linter container image
423428 DOCKER_BUILDKIT=1 docker buildx build --load \
424429 --build-arg GID=$(shell id -g) \
425430 --build-arg UID=$(shell id -u) \
0 commit comments