Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit dbfdd14

Browse files
committed
Validate openapi spec file in github workflow
1 parent ec28719 commit dbfdd14

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/openapi.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Validate openapi spec
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['[0-9]*']
7+
pull_request:
8+
branches:
9+
- main
10+
- 'release-*'
11+
12+
jobs:
13+
validate:
14+
name: Validate
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Validate
19+
shell: bash
20+
run: |
21+
docker run --rm -v "${PWD}:/local" \
22+
openapitools/openapi-generator-cli validate \
23+
-i /local/crates/server/openapi.yaml

0 commit comments

Comments
 (0)