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