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 1ef24dc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
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\-]*$

0 comments on commit 1ef24dc

Please sign in to comment.