Skip to content

Commit

Permalink
ci: script to validate embedded examples in the asyncapi.md file (#1059)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Moya <1083296+smoya@users.noreply.github.com>%0ACo-authored-by: asyncapi-bot <bot+chan@asyncapi.io>
  • Loading branch information
AnimeshKumar923 and asyncapi-bot authored Jul 5, 2024
1 parent d61150d commit 62d3625
Show file tree
Hide file tree
Showing 7 changed files with 2,962 additions and 42 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/validate-embedded-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Validate Embedded Examples in asyncapi.md

on:
pull_request_target:
types: [opened, reopened, synchronize, edited, ready_for_review]

jobs:
validate-examples:
name: Validate Examples
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Dependencies
run: npm install
working-directory: ./scripts/validation/
- name: Validate AsyncAPI documents
run: npm run validate:examples
working-directory: ./scripts/validation/
Loading

0 comments on commit 62d3625

Please sign in to comment.