File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ test:
108
108
BUILD --platform = linux/amd64 ./tests+integration-test
109
109
END
110
110
111
+ # test-lint-openapi - OpenAPI linting from an artifact
112
+ # testing whether the OpenAPI generated during build stage follows good practice.
113
+ test-lint-openapi :
114
+ FROM github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+spectral-base
115
+ # Copy the doc artifact.
116
+ COPY +hosted-build/doc ./doc
117
+ # Scan the doc directory where type of file is JSON.
118
+ DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir = ./doc --file_type = "json"
119
+
111
120
# Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.)
112
121
# publish:
113
122
# FROM scratch
@@ -122,9 +131,3 @@ local-ci-run:
122
131
BUILD +test
123
132
# BUILD +publish
124
133
125
- check-lint-openapi :
126
- FROM github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+spectral-base
127
- # Copy the doc artifact.
128
- COPY +hosted-build/doc ./doc
129
- # Scan the doc directory where type of file is JSON.
130
- DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir = ./doc --file_type = "json"
You can’t perform that action at this time.
0 commit comments