Skip to content

add OracleSet tx

add OracleSet tx #38

name: Validate OpenAPI Spec
on:
push:
paths:
- '**/*.yaml'
- '**/*.json'
pull_request:
paths:
- '**/*.yaml'
- '**/*.json'
jobs:
validate-openapi:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Install Redocly CLI
run: |
npm install # setup the dependencies from package.json
npm install -g @redocly/cli
echo "Redocly CLI successfully installed, version info:"
redocly --version
- name: Validate OpenAPI Spec
run: |
redocly lint ./open_api/json_api.yaml
redocly lint ./open_api/json_api_v2.yaml
- name: Check Validation Result
if: failure()
run: echo "OpenAPI Specification validation failed"
validate-asyncapi:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
- name: Install AsyncAPI CLI
run: |
npm install # setup the dependencies from package.json
npm install -g @asyncapi/cli
echo "AsyncAPI CLI successfully installed, version info:"
asyncapi --version
- name: Validate AsyncAPI Spec
run: |
asyncapi validate ./async_api/websocket_api.yaml
asyncapi validate ./async_api/websocket_api_v2.yaml
- name: Check Validation Result
if: failure()
run: echo "AsyncAPI Specification validation failed"