Skip to content

Update validate.yml #300

Update validate.yml

Update validate.yml #300

Workflow file for this run

# This is an example workflow that validates the `petstore` OpenAPI definitions via the `rdme` GitHub Action
# Petstore docs on ReadMe: https://petstore.readme.io
# `rdme` docs: https://docs.readme.com/docs/rdme
name: 'Validate Petstore Files 🐶'
# This workflow runs any time there is a push to the GitHub repository
# See GitHub's docs for all the possible event types:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
on: push
jobs:
validate:
runs-on: ubuntu-latest
steps:
# Note that when working in a single repository,
# you only need to check out the repository once
# even if you run `rdme` multiple times
- uses: actions/checkout@v3
name: Check out repository # the `name` field is optional for steps
- uses: readmeio/rdme@v8
name: Validate 2.0 (json)
with:
# See our `rdme` docs for more GitHub Actions usage examples:
# https://docs.readme.com/docs/rdme
rdme: openapi:validate 2.0/json/petstore.json
- uses: readmeio/rdme@7afc4d4a256513ce77f0ff7112f6bb84ee3432d6
continue-on-error: true
name: Validate 2.0 (yaml)
with:
rdme: openapi:validate 2.0/yaml/petstore.yaml
- uses: readmeio/rdme@6fb615f4f1c76dab675be46c287eea969b6640f4
continue-on-error: true
name: Validate 3.0 (json)
with:
rdme: openapi:validate 3.0/json/petstore.json
- uses: readmeio/rdme@5dfcf6b723c97dba513feee7df688a3b06d3204b
continue-on-error: true
name: Validate 3.0 (yaml)
with:
rdme: openapi:validate 3.0/yaml/petstore.yaml
- uses: readmeio/rdme@0fb78801f30b716f806311d86ef5fe46154890bf
continue-on-error: true
name: Validate 3.1 (json)
with:
rdme: openapi:validate 3.1/json/petstore.json
- uses: readmeio/rdme@v8
name: Validate 3.1 (yaml)
with:
rdme: openapi:validate 3.1/yaml/petstore.yaml