Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

name: build

on:
on:
push:
branches: ['main']
pull_request:
Expand Down Expand Up @@ -71,6 +71,26 @@ jobs:
npm run lint
npm run test-docker

- name: Test npx double-package install
run: |
npm pack --workspace packages/validator
npm pack --workspace packages/ruleset

# Test without a custom ruleset
npx --yes \
-p ./ibm-cloud-openapi-ruleset-*.tgz \
-p ./ibm-openapi-validator-*.tgz \
lint-openapi packages/validator/test/cli-validator/mock-files/oas3/clean.yml

# Test with a custom .spectral.js
printf "const ibmRuleset = require('@ibm-cloud/openapi-ruleset');\nmodule.exports = { extends: [[ibmRuleset, 'all']], rules: {} };\n" > /tmp/test-spectral.js

npx --yes \
-p ./ibm-cloud-openapi-ruleset-*.tgz \
-p ./ibm-openapi-validator-*.tgz \
lint-openapi --ruleset /tmp/test-spectral.js \
packages/validator/test/cli-validator/mock-files/oas3/clean.yml

publish-release:
needs: build
name: semantic-release
Expand Down
217 changes: 36 additions & 181 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@
"proxy-agent": "6.3.0",
"micromatch": "4.0.8",
"jsonpath-plus": "10.3.0",
"rollup": "2.80.0",
"@stoplight/spectral-core": {
"minimatch": "3.1.5"
}
"rollup": "2.80.0"
}
}
Loading
Loading