Skip to content

Replace swagger-cli with go-swagger. #7

Replace swagger-cli with go-swagger.

Replace swagger-cli with go-swagger. #7

Workflow file for this run

name: cloud-api-spec
on:
push:
tags: [v*]
branches: [master]
pull_request:
branches: [master]
env:
GO_VERSION: 1.22
SWAGGER_VERSION: v0.31.0
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/swagger@${{ env.SWAGGER_VERSION }}
- name: Validate specs
run: |
swagger validate openapi-v1.yaml
swagger validate openapi-v2.yaml