We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78e5e4 commit 02f1016Copy full SHA for 02f1016
.github/workflows/test.yaml
@@ -22,4 +22,21 @@ jobs:
22
- uses: actions/setup-go@v4
23
with:
24
go-version: 1.25.x
25
- - run: go test ./...
+ - run: go test ./...
26
+
27
+ check-openapi:
28
+ name: Check OpenAPI spec is up to date
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - uses: actions/checkout@v3
32
+ - name: Install protoc-gen-openapi
33
+ run: go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest
34
+ - name: Regenerate OpenAPI spec
35
+ working-directory: protobuff
36
+ run: make openapi-v3
37
+ - name: Check for differences
38
+ run: |
39
+ if ! git diff --exit-code protobuff/qubic.openapi.yaml; then
40
+ echo "::error::OpenAPI spec is out of date. Run 'make openapi-v3' in protobuff/ and commit the result."
41
+ exit 1
42
+ fi
0 commit comments