spec: the location syntax is deliberate; JSONPath alignment is an ope… #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: verify | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| regenerate: | |
| name: model matches the generator | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: generator/go.mod | |
| - name: Regenerate and diff | |
| run: | | |
| cd generator | |
| go run . -out ../openapi-changes-model.yaml | |
| cd .. | |
| git diff --exit-code openapi-changes-model.yaml |