Skip to content

Commit

Permalink
Enable tests for commercial data extension
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Oct 11, 2023
1 parent cecc3f4 commit e40ad4a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions extensions/commercial-data/.spectral.yml
Original file line number Diff line number Diff line change
@@ -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\-]*$
2 changes: 1 addition & 1 deletion extensions/commercial-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit e40ad4a

Please sign in to comment.