Skip to content

Commit cb7d070

Browse files
fix: update bash script, pipe xargs
Changes: - applied Sergio's suggestion from: https://github.com/asyncapi/spec/pull/1046/files#r1555684920 - added comment as to why we're skipping the mentioned directory
1 parent 8a18479 commit cb7d070

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/validate-examples.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ jobs:
2424
run: npm install -g @asyncapi/cli
2525
- name: Validate AsyncAPI documents
2626
run: |
27-
find examples/ \( -path 'examples/social-media/*' -prune \) -o -type f \( -name "*.yml" -o -name "*.yaml" \) -exec asyncapi validate {} \;
27+
# NOTE: we've excluded the files inside `examples/social-media/common` folder because it contains partial documents which don't comply with the asyncapi document format, hence these files give error during the validation.
28+
find examples -type f \( -name "*.yml" -o -name "*.yaml" \) -not -path 'examples/social-media/common/*' | xargs -P 10 -L 1 asyncapi validate

0 commit comments

Comments
 (0)