Skip to content

chore(plugins): regenerate with roundtrip dispatch tests and response… #201

chore(plugins): regenerate with roundtrip dispatch tests and response…

chore(plugins): regenerate with roundtrip dispatch tests and response… #201

Workflow file for this run

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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v6
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # 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 opensearchapi/ plugins/; then
echo "::warning::Generated code is out of date. Run 'make gen' and commit the result."
exit 1
fi