Skip to content

Commit

Permalink
Solving issue number #1080 which was showing deprecated output in con…
Browse files Browse the repository at this point in the history
…sole. It was solved by adding install.sh which is a script to hide the deprecated output and modified validate-examples.yml by giving cmd to run install.sh this solve the issue
  • Loading branch information
maskedwolf4 committed Dec 27, 2024
1 parent 97ea47f commit 082ae94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/validate-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Validate AsyncAPI Examples
on:
pull_request_target:
types: [opened, reopened, synchronize, edited, ready_for_review]


jobs:
validate-examples:
Expand All @@ -15,8 +16,9 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install AsyncAPI CLI
run: npm install -g @asyncapi/cli
run: npm install -g @asyncapi/cli && ./install.sh
- name: Validate AsyncAPI documents
run: |
find examples -type f \( -name "*.yml" -o -name "*.yaml" \) -not -path 'examples/social-media/common/*' | xargs -P 10 -L 1 asyncapi validate
Expand Down
13 changes: 13 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Capture the output of npm install
npm_install_output=$(npm install)

# Remove deprecation warnings (example using sed)
modified_output=$(echo "$npm_install_output" | sed '/WARN/d')

# Displaying the modified output
echo "$modified_output"

# Optional: Adding success message
echo "Async API installed successfully!"

0 comments on commit 082ae94

Please sign in to comment.