test(osgen): pin perOpErrorTypeName <-> errwrap.OperationWrappers cou… #112
Workflow file for this run
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: Check generated code | |
| on: [push, pull_request] | |
| jobs: | |
| check-gen: | |
| name: Generated code up to date | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: { go-version-file: 'go.mod' } | |
| - name: Fetch OpenAPI spec | |
| run: make fetch-opensearch-spec | |
| - name: Regenerate code from spec | |
| run: make -j gen | |
| - name: Check for diff | |
| run: | | |
| if ! git diff --exit-code internal/path/builders_gen.go internal/path/builders_gen_test.go v5preview/opensearchapi/; then | |
| echo "::warning::Generated code is out of date. Run 'make gen' and commit the result." | |
| exit 1 | |
| fi |