diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 64b0febd..9345633d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,12 @@ jobs: with: node-version: 'lts/*' - uses: actions/checkout@v3 - - name: Run tests + - name: Run core tests run: | + npm install + npm test + - name: Run commercial-data tests + run: | + cd extensions/commercial-data npm install npm test \ No newline at end of file diff --git a/extensions/commercial-data/.spectral.yml b/extensions/commercial-data/.spectral.yml new file mode 100644 index 00000000..ad10553b --- /dev/null +++ b/extensions/commercial-data/.spectral.yml @@ -0,0 +1,12 @@ +extends: "spectral:oas" +rules: + contact-properties: true + tag-description: true + oas3-parameter-description: true + oas3-unused-component: true + operation-id-kebab-case: + given: "$..operationId" + then: + function: pattern + functionOptions: + match: ^[a-z][a-z0-9\-]*$ \ No newline at end of file diff --git a/extensions/commercial-data/package.json b/extensions/commercial-data/package.json index aa9bc101..87e80dfa 100644 --- a/extensions/commercial-data/package.json +++ b/extensions/commercial-data/package.json @@ -13,7 +13,7 @@ "url": "git+https://github.com/Open-EO/openeo-api.git" }, "devDependencies": { - "@stoplight/spectral": "^6.6.0", + "@stoplight/spectral-cli": "^6.6.0", "redoc-cli": "^0.13.21" }, "scripts": {