Files
portainer/.github/workflows/validate-openapi-spec.yaml
T
Chaim Lev-Ari 62ac9c5a5a fix(ci): use makefile again (#8987)
fix(makefile): revert makefile build process for 2.18 (#8977)"
2023-05-23 10:49:24 +07:00

30 lines
582 B
YAML

name: Validate OpenAPI specs
on:
pull_request:
branches:
- master
- develop
- 'release/*'
jobs:
openapi-spec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.18'
- name: Download golang modules
run: cd ./api && go get -t -v -d ./...
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: yarn --frozen-lockfile
- name: Validate OpenAPI Spec
run: make docs-validate