diff --git a/catalyst-gateway/Earthfile b/catalyst-gateway/Earthfile index 53d0c35040c..ec91d09309a 100644 --- a/catalyst-gateway/Earthfile +++ b/catalyst-gateway/Earthfile @@ -122,8 +122,9 @@ local-ci-run: BUILD +test # BUILD +publish -# check-lint-openapi - OpenAPI linting from a given directory -check-lint-openapi: - FROM busybox - COPY +hosted-build/doc ./work - DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir="./work" --file_type="json" +check-lint-openapi: + FROM github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+spectral-base + # Copy the doc artifact. + COPY +hosted-build/doc ./doc + # Scan the doc directory where type of file is JSON. + DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir=./doc --file_type="json"