Skip to content

feat!: upgrade to iota_sdk:2.0 #154

feat!: upgrade to iota_sdk:2.0

feat!: upgrade to iota_sdk:2.0 #154

Workflow file for this run

name: Swagger Validate
on:
push:
paths:
- "documentation/api/**"
- ".github/workflows/swagger.yml"
branches:
- main
pull_request:
paths:
- "documentation/api/**"
- ".github/workflows/swagger.yml"
jobs:
list-docs:
name: Gather API definitions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: set-matrix
run: echo "::set-output name=matrix::$(ls documentation/api/*.yml | jq -Rsc 'split("\n")[:-1]')"
validate-swagger-docs:
needs: list-docs
name: ${{ format('Validating {0}', matrix.doc) }}
runs-on: ubuntu-latest
strategy:
matrix:
doc: ${{ fromJson(needs.list-docs.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Validate API definition
uses: char0n/swagger-editor-validate@v1
with:
definition-file: ${{ matrix.doc }}