Skip to content

Replace swagger-cli with go-swagger. #6

Replace swagger-cli with go-swagger.

Replace swagger-cli with go-swagger. #6

Workflow file for this run

name: cloud-api-spec
on:
push:
tags: [v*]
branches: [master]
pull_request:
branches: [master]
env:
GO_VERSION: 1.22
jobs:
Validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Install go-swagger
run: go install github.com/go-swagger/go-swagger/cmd/[email protected]
- name: Validate specs
run: |
swagger validate openapi-v1.yaml
swagger validate openapi-v2.yaml